git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generator: Add 'Key' parameter type.
[libguestfs.git]
/
tools
/
virt-make-fs
diff --git
a/tools/virt-make-fs
b/tools/virt-make-fs
index
54c5a1d
..
3f27a62
100755
(executable)
--- a/
tools/virt-make-fs
+++ b/
tools/virt-make-fs
@@
-20,6
+20,7
@@
use warnings;
use strict;
use Sys::Guestfs;
use strict;
use Sys::Guestfs;
+use Sys::Guestfs::Lib qw(feature_available);
use Pod::Usage;
use Getopt::Long;
use Pod::Usage;
use Getopt::Long;
@@
-407,8
+408,8
@@
eval {
$g->add_drive ($output);
$g->launch ();
$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.
}
# Partition the disk.
@@
-550,7
+551,7
@@
L<https://bugzilla.redhat.com/>
=head1 AUTHOR
=head1 AUTHOR
-Richard W.M. Jones L<http://
et
.redhat.com/~rjones/>
+Richard W.M. Jones L<http://
people
.redhat.com/~rjones/>
=head1 COPYRIGHT
=head1 COPYRIGHT