[Libguestfs] [PATCH 1/5] Revert "ext2: tweak the error returned message of resize2fs-M(BZ755729)"

Richard W.M. Jones rjones at redhat.com
Fri Mar 9 18:14:05 UTC 2012


From: "Richard W.M. Jones" <rjones at redhat.com>

This reverts commit 0eaf06e673833bc25673d5c3d2487fffae310285.
---
 daemon/ext2.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/daemon/ext2.c b/daemon/ext2.c
index 02cd68a..b1c6c02 100644
--- a/daemon/ext2.c
+++ b/daemon/ext2.c
@@ -255,10 +255,7 @@ do_resize2fs_M (const char *device)
 
   r = command (NULL, &err, prog, "-M", device, NULL);
   if (r == -1) {
-    if (strstr (err, "e2fsck -f"))
-      reply_with_error ("you need to run e2fsck with the correct and/or forceall options first");
-    else
-      reply_with_error ("%s", err);
+    reply_with_error ("%s", err);
     free (err);
     return -1;
   }
-- 
1.7.9.1




More information about the Libguestfs mailing list