[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]