Whamcloud - gitweb
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 29b4564..e34adca 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 238e799..5610da5 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);