[Libguestfs] [PATCH] resize: print FSes which cannot be expanded

Pino Toscano ptoscano at redhat.com
Wed Sep 10 11:13:05 UTC 2014


Should ease a bit the discovery of a filesystem which cannot be
expanded.
---
Maybe it would be worth to be printed in any case, even if not being
verbose?

 resize/resize.ml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/resize/resize.ml b/resize/resize.ml
index 78ec81e..0485db0 100644
--- a/resize/resize.ml
+++ b/resize/resize.ml
@@ -558,7 +558,11 @@ read the man page virt-resize(1).
       | ContentFS (("ntfs"), _) when !ntfs_available -> true
       | ContentFS (("btrfs"), _) when !btrfs_available -> true
       | ContentFS (("xfs"), _) when !xfs_available -> true
-      | ContentFS (_, _) -> false
+      | ContentFS (fs, _) ->
+        if verbose then
+          eprintf "Unknown/unavailable method for expanding filesystem %s\n"
+            fs;
+        false
       | ContentExtendedPartition -> false
     else
       fun _ -> false
-- 
1.9.3




More information about the Libguestfs mailing list