]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
resize2fs: Make sure we close out the progress bar in pass #4
authorTheodore Ts'o <tytso@mit.edu>
Fri, 22 Aug 2008 13:26:26 +0000 (09:26 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 22 Aug 2008 13:57:44 +0000 (09:57 -0400)
This fixes a cosemtic issue where we don't complete the progress bar
and issue a newline before printing the final resize successful
message.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
resize/resize2fs.c

index 7c4bdec5fb81f5ac3a38cc3c4b1f48f4cc425d43..cb8d5659c5eb2fd27226c2169a5fa9b23e685260 100644 (file)
@@ -1462,6 +1462,10 @@ static errcode_t inode_ref_fix(ext2_resize_t rfs)
                goto errout;
        }
 
+       if (rfs->progress && (is.num < is.max_dirs))
+               (rfs->progress)(rfs, E2_RSZ_INODE_REF_UPD_PASS,
+                               is.max_dirs, is.max_dirs);
+
 errout:
        ext2fs_free_extent_table(rfs->imap);
        rfs->imap = 0;