[Libguestfs] [PATCH 1/5] virt-make-fs: Fix filesystem type check when estimating ntfs.

Richard W.M. Jones rjones at redhat.com
Thu May 3 13:36:27 UTC 2012


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

---
 tools/virt-make-fs |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/virt-make-fs b/tools/virt-make-fs
index f941a82..9951ecd 100755
--- a/tools/virt-make-fs
+++ b/tools/virt-make-fs
@@ -376,7 +376,7 @@ if ($type =~ /^ext[3-9]/) {
     $estimate += 1024 * 1024;   # For ext3/4, add some more for the journal.
 }
 
-if ($type =~ /^ntfs/) {
+if ($type eq "ntfs") {
     $estimate += 4 * 1024 * 1024; # NTFS journal.
 }
 
-- 
1.7.10




More information about the Libguestfs mailing list