From 8f3428d8996cfb1a35a07f7b6e3d33f54978e9d1 Mon Sep 17 00:00:00 2001 From: Zheng Liu Date: Mon, 3 Mar 2014 00:31:27 -0500 Subject: [PATCH] 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 Signed-off-by: "Theodore Ts'o" --- debugfs/lsdel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debugfs/lsdel.c b/debugfs/lsdel.c index 0e774a30..5276014f 100644 --- a/debugfs/lsdel.c +++ b/debugfs/lsdel.c @@ -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,