Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 30 Nov 2000 19:48:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 30 Nov 2000 19:47:59 -0500 Received: from virgo.cus.cam.ac.uk ([131.111.8.20]:43466 "EHLO virgo.cus.cam.ac.uk") by vger.kernel.org with ESMTP id ; Thu, 30 Nov 2000 19:47:52 -0500 Date: Fri, 1 Dec 2000 00:17:25 +0000 (GMT) From: Anton Altaparmakov To: linux-kernel@vger.kernel.org Subject: PATCH: 2.4.0-test12-pre3: fix ntfs BUG() call Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1804928587-975629726=:26566" Content-ID: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---559023410-1804928587-975629726=:26566 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Attached patch fixes the BUG() people are seeing when using the ntfs driver with 2.4.0-test* kernels. Patch is tested and everything seems to be working fine with it. Description: The BUG() call was due to a not implemented ntfs_get_block(). The fix is to comment out all [bm]map associated code since if any of it is used it results in the BUG(). I haven't removed the code altogether, since, once ntfs_get_block is implemented, the rest of the code can just be uncommented and it should all work. This patch has been submitted to Linus for inclusion in the next 2.4.0.test* kernel. Regards, Anton -- Anton Altaparmakov Phone: +44-(0)1223-333541 (lab) Christ's College eMail: AntonA@bigfoot.com / aia21@[cus.]cam.ac.uk Cambridge CB2 3BU WWW: http://www-stu.christs.cam.ac.uk/~aia21/ United Kingdom ICQ: 8561279 ---559023410-1804928587-975629726=:26566 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="ntfs_no_bmmap.diff" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: ZGlmZiAtdXIgbGludXgtMi40LjAtdGVzdDEyLXByZTMvZnMvbn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fYmxvY2soKSBpcyBqdXN0IGEgY2FsbCB0byBCVUcoKSBk byBub3QNCisJIAkgKiBkZWZpbmUgYW55IFtibV1tYXAgb3BzIG9yIHdlIGdl dCB0aGUgQlVHKCkgd2hlbmV2ZXIgc29tZW9uZQ0KKwkJICogcnVucyBtYyBv ciBtcGcxMjMgb24gYW4gbnRmcyBwYXJ0aXRpb24hDQorCQkgKiBGSVhNRTog VW5jb21tZW50IHRoZSBiZWxvdyBjb2RlIHdoZW4gbnRmc19nZXRfYmxvY2sg aXMNCisJCSAqIGltcGxlbWVudGVkLiAqLw0KKwkJLyogaWYgKGNhbl9tbWFw KSB7DQogCQkJaW5vZGUtPmlfb3AgPSAmbnRmc19pbm9kZV9vcGVyYXRpb25z Ow0KIAkJCWlub2RlLT5pX2ZvcCA9ICZudGZzX2ZpbGVfb3BlcmF0aW9uczsN CiAJCQlpbm9kZS0+aV9tYXBwaW5nLT5hX29wcyA9ICZudGZzX2FvcHM7DQog CQkJaW5vZGUtPnUubnRmc19pLm1tdV9wcml2YXRlID0gaW5vZGUtPmlfc2l6 ZTsNCi0JCX0gZWxzZSB7DQorCQl9IGVsc2UgKi8gew0KIAkJCWlub2RlLT5p X29wPSZudGZzX2lub2RlX29wZXJhdGlvbnNfbm9ibWFwOw0KIAkJCWlub2Rl LT5pX2ZvcD0mbnRmc19maWxlX29wZXJhdGlvbnNfbm9tbWFwOw0KIAkJfQ0K DQo= ---559023410-1804928587-975629726=:26566-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/