Whamcloud - gitweb
libext2fs: handle inline_data in block iterator function
authorZheng Liu <wenqing.lz@taobao.com>
Mon, 3 Mar 2014 05:27:48 +0000 (00:27 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Mar 2014 13:46:13 +0000 (08:46 -0500)
commit716a3c3536f87372ce16b5b678b9957dabf6d638
treec8d912b851bb420a2a46a759662b8a20a4a64a8c
parent416c1de94ddf7199aedaf7b039292a36b92699fb
libext2fs: handle inline_data in block iterator function

After applied this commit (a7f4c635), we have banned to traverse blocks
for an inode which has inline data because no block belongs to it.  But
before calling this function, we need to check inline data flag.  This
commit add a sanity check ext2fs_inode_has_valid_blocks2() to fix them
except that ext2fs_expand_dir because it will be fixed by another patch.

Meanwhile in this commit it fixes a bug that when we kill a file we
could leak an inode.

Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/debugfs.c
debugfs/filefrag.c
debugfs/lsdel.c
lib/ext2fs/valid_blk.c
misc/tune2fs.c