Date: Wed, 7 May 2008 19:21:18 +0400 From: pluknet <pluknet@gmail.com> To: "Coleman Kane" <cokane@freebsd.org> Cc: josh.carroll@gmail.com, freebsd-current@freebsd.org Subject: Re: panic mounting ntfs Message-ID: <a31046fc0805070821i742a0065i9f938e9964bb144e@mail.gmail.com> In-Reply-To: <1210172870.2043.17.camel@localhost> References: <8cb6106e0805062004r681045b5ge2981ae73e777a49@mail.gmail.com> <1210163153.2043.11.camel@localhost> <8cb6106e0805070800m46101f21sa8298b33e82bbfbd@mail.gmail.com> <1210172870.2043.17.camel@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_17853_15017871.1210173678497 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Josh. >In doing some data recovery for my brother-in-law, I tried to mount >his win2k partition (NTFS), and the box immediately panic'd. What about this (maybe not very clean) patch? It helped me to mount ntfs volume without a panic. I guess ntfs was not modified after some lockmgr changes in feb/march. wbr, pluknet ------=_Part_17853_15017871.1210173678497 Content-Type: text/x-diff; name=ntfs.lockmgr.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_ffy1wtg00 Content-Disposition: attachment; filename=ntfs.lockmgr.diff LS0tIG50ZnNfc3Vici5jLm9yaWcJMjAwOC0wNS0wNyAxODoxNzowMS4wMDAwMDAwMDAgKzA0MDAK KysrIG50ZnNfc3Vici5jCTIwMDgtMDUtMDcgMTg6MTE6MDUuMDAwMDAwMDAwICswNDAwCkBAIC00 MCw2ICs0MCw3IEBACiAjaW5jbHVkZSA8c3lzL2ZpbGUuaD4KICNpbmNsdWRlIDxzeXMvbWFsbG9j Lmg+CiAjaW5jbHVkZSA8c3lzL2xvY2suaD4KKyNpbmNsdWRlIDxzeXMvc3guaD4KICNpbmNsdWRl IDxzeXMvaWNvbnYuaD4KIAogLyogI2RlZmluZSBOVEZTX0RFQlVHIDEgKi8KQEAgLTM1OCw3ICsz NTksOCBAQCBudGZzX250Z2V0KGlwKQogCiAJ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Part_17853_15017871.1210173678497--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a31046fc0805070821i742a0065i9f938e9964bb144e>