aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-01-15 14:50:02 -0500
committerTheodore Ts'o <tytso@mit.edu>2013-01-16 14:09:20 -0500
commite1e961cb808e7192d5b4760c9e467e8cfafc392d (patch)
tree7e99b3ca23d85d52bb43329bc34d322442888b4d
parent4df6a37bd39c84ea67394ab5049bc82f14b929b5 (diff)
downloade2fsprogs-e1e961cb808e7192d5b4760c9e467e8cfafc392d.tar.gz
e2fsprogs-e1e961cb808e7192d5b4760c9e467e8cfafc392d.tar.xz
e2fsprogs-e1e961cb808e7192d5b4760c9e467e8cfafc392d.zip
debugfs: fix mknod command so that it updates the block group statistics
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--debugfs/debugfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index 59860e79..2a1525a8 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -1747,8 +1747,7 @@ void do_mknod(int argc, char *argv[])
}
if (ext2fs_test_inode_bitmap2(current_fs->inode_map,newfile))
com_err(argv[0], 0, "Warning: inode already set");
- ext2fs_mark_inode_bitmap2(current_fs->inode_map, newfile);
- ext2fs_mark_ib_dirty(current_fs);
+ ext2fs_inode_alloc_stats2(current_fs, newfile, +1, 0);
memset(&inode, 0, sizeof(inode));
inode.i_mode = mode;
inode.i_atime = inode.i_ctime = inode.i_mtime =