]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: calculate and verify checksums of directory leaf blocks
authorDarrick J. Wong <djwong@us.ibm.com>
Sun, 29 Apr 2012 22:41:10 +0000 (18:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Apr 2012 22:41:10 +0000 (18:41 -0400)
commitb6e5718ef8685f758a78796c26df2910a9e99769
tree063ec0bc590950b7ca0e2c5d5ed8a1c259ce1675
parent0fa8b6c1ccb391222d2e84af9433d13332bc8f01
ext4: calculate and verify checksums of directory leaf blocks

Calculate and verify the checksums for directory leaf blocks
(i.e. blocks that only contain actual directory entries).  The
checksum lives in what looks to be an unused directory entry with a 0
name_len at the end of the block.  This scheme is not used for
internal htree nodes because the mechanism in place there only costs
one dx_entry, whereas the "empty" directory entry would cost two
dx_entries.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/dir.c
fs/ext4/ext4.h
fs/ext4/namei.c