mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
virt-make-fs: Add a test of btrfs (regression test for RHBZ#816098).
This commit is contained in:
@@ -29,6 +29,7 @@ perl -MSys::Guestfs '-MSys::Guestfs::Lib qw(feature_available)' -e '
|
||||
$g->launch ();
|
||||
feature_available ($g, "ntfs3g") and print "ntfs3g_available=yes\n";
|
||||
feature_available ($g, "ntfsprogs") and print "ntfsprogs_available=yes\n";
|
||||
feature_available ($g, "btrfs") and print "btrfs_available=yes\n";
|
||||
')
|
||||
|
||||
declare -a choices
|
||||
@@ -47,6 +48,9 @@ choices=(--type=ext2 --type=ext3 --type=ext4)
|
||||
if [ "$ntfs3g_available" = "yes" -a "$ntfsprogs_available" = "yes" ]; then
|
||||
choices[${#choices[*]}]="--type=ntfs"
|
||||
fi
|
||||
if [ "$btrfs_available" = "yes" ]; then
|
||||
choices[${#choices[*]}]="--type=btrfs"
|
||||
fi
|
||||
type=`random_choice`
|
||||
|
||||
choices=(--format=raw --format=qcow2)
|
||||
|
||||
Reference in New Issue
Block a user