mirror of https://github.com/vitalif/e2fsprogs
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
parent
82e77d07ee
commit
8f3428d899
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue