X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=tools%2Fvirt-make-fs;h=3f27a623e37560c192521f1ff9a21fc75dbd277a;hp=54c5a1dc68da46b1d91f5af87faf73e01f5bf0aa;hb=c6c030b64bab98602363485cb62a9e1d847d570e;hpb=d868221d9f746ab17b83e7220cef9227fcad3696 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