]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
main.c (main): If resize_fs returns an error, don't print the
authorTheodore Ts'o <tytso@mit.edu>
Tue, 9 Apr 2002 16:46:19 +0000 (12:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 9 Apr 2002 16:46:19 +0000 (12:46 -0400)
message stating that the filesystem was resized after
printing the error.

resize/ChangeLog
resize/main.c

index 29b456468fbe0c5a1fdc5aac20d747181323d9fa..e34adcaa246189813e9d2f480a26d2c12acd09a6 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-09    <tytso@snap.thunk.org>
+
+       * main.c (main): If resize_fs returns an error, don't print the
+               message stating that the filesystem was resized.
+
 2002-03-31    <tytso@mit.edu>
 
        * main.c (main): If we are resizing a plain file which is smaller
index 238e799c8a18ff061360606d518614f6f6b3b101..5610da575a361e9e8222f59e8cafd640880c2e46 100644 (file)
@@ -264,6 +264,7 @@ int main (int argc, char ** argv)
                com_err(program_name, retval, _("while trying to resize %s"),
                        device_name);
                ext2fs_close (fs);
+               exit(1);
        }
        printf(_("The filesystem on %s is now %d blocks long.\n\n"),
               device_name, new_size);