summaryrefslogtreecommitdiff
path: root/resize
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2002-04-09 12:46:19 -0400
committerTheodore Ts'o <tytso@mit.edu>2002-04-09 12:46:19 -0400
commit1608211222685c65f3989f1f8d32e8f72d711c3d (patch)
treed3273923ec1f5937a8dbaaed0e0686cc9992ca74 /resize
parente5b3b27966ac71ca8b445a18a6ee1238684fb3f4 (diff)
downloade2fsprogs-1608211222685c65f3989f1f8d32e8f72d711c3d.tar.gz
main.c (main): If resize_fs returns an error, don't print the
message stating that the filesystem was resized after printing the error.
Diffstat (limited to 'resize')
-rw-r--r--resize/ChangeLog5
-rw-r--r--resize/main.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/resize/ChangeLog b/resize/ChangeLog
index 29b45646..e34adcaa 100644
--- a/resize/ChangeLog
+++ b/resize/ChangeLog
@@ -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
diff --git a/resize/main.c b/resize/main.c
index 238e799c..5610da57 100644
--- a/resize/main.c
+++ b/resize/main.c
@@ -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);