More ADS and dentry alignment and padding issues
authorEric Biggers <ebiggers3@gmail.com>
Tue, 28 Aug 2012 03:12:52 +0000 (22:12 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 28 Aug 2012 03:12:52 +0000 (22:12 -0500)
commit599038a018d59ae50adca3ead59bfbb83aadef59
treed28adb1dce98f0cc90349852e000f28647386640
parent8ca5d211433e3edef4366f984e2bb13a5a425c6c
More ADS and dentry alignment and padding issues

So... I think that ALL the filename fields (short name, file name, stream name)
actually have a 2-byte null terminator, but NOT if that field has zero length.
This is now taken into account.

A warning is now issued if the dentry length is unexpectedly large.

We will now write all dentries with the "canonical" length regardless of what
dentry length was read in (as we are throwing out whatever junk was appended to
it anyway...).
src/dentry.c
src/dentry.h
src/hardlink.c