diff options
author | Theodore Ts'o <tytso@mit.edu> | 2006-11-11 22:32:35 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2006-11-11 22:32:35 -0500 |
commit | f77704e416fca7dbe4cc91abba674d2ae3c14f6f (patch) | |
tree | 1a927102301da898881d0dc788d493381f61f463 /e2fsck/ChangeLog | |
parent | 52325593b1979509dc3f18232b50359e311268cc (diff) | |
download | e2fsprogs-f77704e416fca7dbe4cc91abba674d2ae3c14f6f.tar.gz |
Add directory hashed signed/unsigned hint to superblock
The e2fsprogs and kernel implementation of directory hash tree has a
bug which causes the implementation to be dependent on whether
characters are signed or unsigned. Platforms such as the PowerPC,
Arm, and S/390 have signed characters by default, which means that
hash directories on those systems are incompatible with hash
directories on other systems, such as the x86.
To fix this we add a new flags field to the superblock, and define two
new bits in that field to indicate whether or not the directory should
be signed or unsigned. If the bits are not set, e2fsck and fixed
kernels will set them to the signed/unsigned value of the currently
running platform, and then respect those bits when calculating the
directory hash. This allows compatibility with current filesystems,
as well as allowing cross-architectural compatibility.
Addresses Debian Bug: #389772
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/ChangeLog')
-rw-r--r-- | e2fsck/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index 2f11bd75..24288fee 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,5 +1,16 @@ 2006-11-11 Theodore Tso <tytso@mit.edu> + * super.c (e2fsck_fix_dirhash_hint, check_super_block): If neither + the signed or unsigned dirhash hint, set it based on + default signed vs. unsigned character type in use by the + platform. + + * problem.c, problem.h (PR_0_DIRHASH_HINT): Add new problem code. + + * pass2.c (check_dir_block), rehash.c (fill_dir_block): Check the + superblock flags to determine whether to use the signed or + unsigned version of the hash should be used. + * problem.c, problem.h (PR_2_BLOCKS_HI_ZERO): Add new problem code. * pass1.c (e2fsck_pass1), pass2.c (e2fsck_process_bad_inode): |