]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Calculate and verify checksums for htree nodes
authorDarrick J. Wong <djwong@us.ibm.com>
Sun, 29 Apr 2012 22:39:10 +0000 (18:39 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Apr 2012 22:39:10 +0000 (18:39 -0400)
commit481e67fc03ac0ef7ccae027a041444babb2400fa
tree436c6e039ffef3387fcfac0bb699f0b14b4c9ba6
parent04ca410b6ef971817f8489c0abcafa6bd4253081
ext4: Calculate and verify checksums for htree nodes

Calculate and verify the checksum for directory index tree (htree)
node blocks.  The checksum is stored in the last 4 bytes of the htree
block and requires the dx_entry array to stop 1 dx_entry short of the
end of the block.

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