summaryrefslogtreecommitdiff
path: root/resize
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-04-09 11:39:11 -0400
committerTheodore Ts'o <tytso@mit.edu>2008-04-17 16:38:13 -0400
commit1ca1059fd0126fd2c065f272a566c18f14bab16d (patch)
tree65e5fa2bac751cfe71110b8b6f23344812da9f44 /resize
parenta91b3f36dd48aabfacedb3c092fd88235b030d9c (diff)
downloade2fsprogs-1ca1059fd0126fd2c065f272a566c18f14bab16d.tar.gz
Add support for the HUGE_FILE feature
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'resize')
-rw-r--r--resize/resize2fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resize/resize2fs.c b/resize/resize2fs.c
index 1062ffa4..5fb35010 100644
--- a/resize/resize2fs.c
+++ b/resize/resize2fs.c
@@ -1536,7 +1536,7 @@ static errcode_t fix_resize_inode(ext2_filsys fs)
retval = ext2fs_read_inode(fs, EXT2_RESIZE_INO, &inode);
if (retval) goto errout;
- inode.i_blocks = fs->blocksize/512;
+ ext2fs_iblk_set(fs, &inode, 1);
retval = ext2fs_write_inode(fs, EXT2_RESIZE_INO, &inode);
if (retval) goto errout;