X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=tools%2Fvirt-make-fs;h=3f27a623e37560c192521f1ff9a21fc75dbd277a;hb=581a7965faa5bf242ab3f8b7c259ab17c2e967f4;hp=54c5a1dc68da46b1d91f5af87faf73e01f5bf0aa;hpb=d868221d9f746ab17b83e7220cef9227fcad3696;p=libguestfs.git
diff --git a/tools/virt-make-fs b/tools/virt-make-fs
index 54c5a1d..3f27a62 100755
--- a/tools/virt-make-fs
+++ b/tools/virt-make-fs
@@ -20,6 +20,7 @@ use warnings;
use strict;
use Sys::Guestfs;
+use Sys::Guestfs::Lib qw(feature_available);
use Pod::Usage;
use Getopt::Long;
@@ -407,8 +408,8 @@ eval {
$g->add_drive ($output);
$g->launch ();
- if ($type eq "ntfs") {
- $g->available ([ "ntfs3g" ]);
+ if ($type eq "ntfs" && !feature_available ($g, "ntfs3g", "ntfsprogs")) {
+ die __"virt-make-fs: NTFS support was disabled when libguestfs was compiled\n"
}
# Partition the disk.
@@ -550,7 +551,7 @@ L
=head1 AUTHOR
-Richard W.M. Jones L
+Richard W.M. Jones L
=head1 COPYRIGHT