From a9b23fc99da8c8918cb5fb8dcd1732edb70ad382 Mon Sep 17 00:00:00 2001 From: Lev Solomonov Date: Wed, 4 Dec 2013 21:55:22 -0500 Subject: [PATCH] debugfs: fix range mode of freei commit 2ae5d1fdb82b31bf270c4699c59a087c846db2f0 was supposed to teach 'seti' and 'freei' to act on a range of consecutive inodes. apparently only 'seti' has learned: 'freei' doesn't advance the ino, repeatedly acting on the same one instead. Signed-off-by: Lev Solomonov Signed-off-by: "Theodore Ts'o" --- debugfs/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index b2406c7..1fc76a0 100644 --- a/debugfs/debugfs.c +++ b/debugfs/debugfs.c @@ -1030,7 +1030,7 @@ void do_freei(int argc, char *argv[]) !ext2fs_test_inode_bitmap2(current_fs->inode_map,inode)) com_err(argv[0], 0, "Warning: inode already clear"); while (len-- > 0) - ext2fs_unmark_inode_bitmap2(current_fs->inode_map, inode); + ext2fs_unmark_inode_bitmap2(current_fs->inode_map, inode++); ext2fs_mark_ib_dirty(current_fs); } -- 1.8.3.1