git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1dd006
)
virt-make-fs: Use Sys::Guestfs::Lib::feature_available helper function.
author
Richard Jones
<rjones@redhat.com>
Sat, 10 Apr 2010 12:20:52 +0000
(13:20 +0100)
committer
Richard Jones
<rjones@redhat.com>
Sat, 10 Apr 2010 12:41:10 +0000
(13:41 +0100)
tools/virt-make-fs
patch
|
blob
|
history
diff --git
a/tools/virt-make-fs
b/tools/virt-make-fs
index
54c5a1d
..
74de4de
100755
(executable)
--- 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.