summaryrefslogtreecommitdiff
path: root/lib/ext2fs/res_gdt.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2005-01-27 18:47:51 -0500
committerTheodore Ts'o <tytso@mit.edu>2005-01-27 18:47:51 -0500
commitd4dc0a9e29f9e50a46840bc130c6a816c4c7faa5 (patch)
tree99a8cf70241e22eff84e4c450f94eebdec0cb8bc /lib/ext2fs/res_gdt.c
parent5780ead245fec02b83a18e0e12835732acdb64b1 (diff)
downloade2fsprogs-d4dc0a9e29f9e50a46840bc130c6a816c4c7faa5.tar.gz
Create the resize inode is created even if the s_reserved_gdt_blocks is
zero; e2fsck will now complain and recreate the resize inode if i_links_count is zero or if it is not a regular file.
Diffstat (limited to 'lib/ext2fs/res_gdt.c')
-rw-r--r--lib/ext2fs/res_gdt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/ext2fs/res_gdt.c b/lib/ext2fs/res_gdt.c
index 1fdb1d45..8b4ddca6 100644
--- a/lib/ext2fs/res_gdt.c
+++ b/lib/ext2fs/res_gdt.c
@@ -72,8 +72,6 @@ errcode_t ext2fs_create_resize_inode(ext2_filsys fs)
EXT2_CHECK_MAGIC(fs, EXT2_ET_MAGIC_EXT2FS_FILSYS);
sb = fs->super;
- if (!sb->s_reserved_gdt_blocks)
- return 0;
retval = ext2fs_get_mem(2 * fs->blocksize, (void **)&dindir_buf);
if (retval)