Whamcloud - gitweb
resize2fs: Clarify error explaining on-line shrinking is not supported at all
authorTheodore Ts'o <tytso@mit.edu>
Sat, 27 Nov 2010 00:42:15 +0000 (19:42 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 27 Nov 2010 00:42:15 +0000 (19:42 -0500)
Addresses-Debian-Bug: #599786

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

index 4bc5451..2a40584 100644 (file)
@@ -38,8 +38,7 @@ errcode_t online_resize_fs(ext2_filsys fs, const char *mtpt,
                 "on-line resizing required\n"), fs->device_name, mtpt);
 
        if (*new_size < sb->s_blocks_count) {
-               printf(_("On-line shrinking from %u to %u not supported.\n"),
-                      sb->s_blocks_count, *new_size);
+               com_err(program_name, 0, _("On-line shrinking not supported"));
                exit(1);
        }