debugfs: make lsdel command support inline data

After checking inline data in ext2fs_inode_have_valid_blocks2() we won't
traverse the block in do_lsdel() function.  But if an inode has inline
data we also need to report it.

Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
pu
Zheng Liu 2014-03-03 00:31:27 -05:00 committed by Theodore Ts'o
parent 82e77d07ee
commit 8f3428d899
1 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,8 @@ void do_lsdel(int argc, char **argv)
goto next;
}
}
if (lsd.free_blocks && !lsd.bad_blocks) {
if (lsd.free_blocks && !lsd.bad_blocks ||
inode.i_flags & EXT4_INLINE_DATA_FL) {
if (num_delarray >= max_delarray) {
max_delarray += 50;
delarray = realloc(delarray,