kern/142558: Minor updates to fs/msdosfs headers (from NetBSD)
Pedro F. Giffuni
giffunip at tutopia.com
Sun Jan 17 20:40:06 UTC 2010
The following reply was made to PR kern/142558; it has been noted by GNATS.
From: "Pedro F. Giffuni" <giffunip at tutopia.com>
To: FreeBSD-gnats-submit at FreeBSD.org, freebsd-bugs at FreeBSD.org
Cc:
Subject: Re: kern/142558: Minor updates to fs/msdosfs headers (from NetBSD)
Date: Sun, 17 Jan 2010 12:39:41 -0800 (PST)
--0-2114050911-1263760781=:30275
Content-Type: text/plain; charset=us-ascii
Updated patch:
- In direntry.h remove deExtension, this was always part of the deName
and some of the code still abuses it. This basically undoes CVS Rev.
1.46 but fixes the issues more practically.
- As a consequence to the above winChksum is now exactly as
in NetBSD.
--0-2114050911-1263760781=:30275
Content-Type: application/octet-stream; name=patch-msdosfs
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=patch-msdosfs
ZGlmZiAtcnUgbXNkb3Nmcy5vcmlnL2Jvb3RzZWN0LmggbXNkb3Nmcy9ib290
c2VjdC5oCi0tLSBtc2Rvc2ZzLm9yaWcvYm9vdHNlY3QuaAkyMDEwLTAxLTA5
IDE5OjI5OjQ1LjAwMDAwMDAwMCArMDAwMAorKysgbXNkb3Nmcy9ib290c2Vj
dC5oCTIwMTAtMDEtMTcgMTQ6MTY6MjAuMDAwMDAwMDAwICswMDAwCkBAIC0x
Niw2ICsxNiw4IEBACiAgKgogICogT2N0b2JlciAxOTkyCiAgKi8KKyNpZm5k
ZWYgX0ZTX01TRE9TRlNfQk9PVFNFQ1RfSF8KKyNkZWZpbmUJX0ZTX01TRE9T
RlNfQk9PVFNFQ1RfSF8KIAogLyoKICAqIEZvcm1hdCBvZiBhIGJvb3Qgc2Vj
dG9yLiAgVGhpcyBpcyB0aGUgZmlyc3Qgc2VjdG9yIG9uIGEgRE9TIGZsb3Bw
eSBkaXNrCkBAIC05MSwzICs5Myw1IEBACiAjZGVmaW5lCWJzSGlkZGVuU2Vj
cwlic0JQQ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