diff options
author | Lev Solomonov <solo@primarydata.com> | 2013-12-04 21:55:22 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-12-04 21:55:27 -0500 |
commit | a9b23fc99da8c8918cb5fb8dcd1732edb70ad382 (patch) | |
tree | 3698332cdfcd1e15280838e9ac1be795c98bf841 /debugfs | |
parent | 2fe2d408a4e231eb5d2342b7f3dbd155563aa755 (diff) | |
download | e2fsprogs-a9b23fc99da8c8918cb5fb8dcd1732edb70ad382.tar.gz |
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 <solo@primarydata.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'debugfs')
-rw-r--r-- | debugfs/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index b2406c74..1fc76a06 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); } |