mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
iotests: Enable fuse for many tests
Many tests (that do not support generic protocols) can run just fine with FUSE-exported images, so allow them to. Note that this is no attempt at being definitely complete. There are some tests that might be modified to run on FUSE, but this patch still skips them. This patch only tries to pick the rather low-hanging fruits. Note that 221 and 250 only pass when .lseek is correctly implemented, which is only possible with a libfuse that is 3.8 or newer. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20201027190600.192171-20-mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
@@ -38,7 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.pattern
|
||||
|
||||
_supported_fmt raw qcow2 qed luks
|
||||
_supported_proto file sheepdog rbd nfs
|
||||
_supported_proto file sheepdog rbd nfs fuse
|
||||
|
||||
echo "=== Creating image"
|
||||
echo
|
||||
|
||||
@@ -41,7 +41,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
|
||||
# Currently only qcow2 supports rebasing
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
_default_cache_mode writethrough
|
||||
_supported_cache_modes writethrough none
|
||||
# The refcount table tests expect a certain minimum width for refcount entries
|
||||
|
||||
@@ -46,7 +46,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
# Any format supporting backing files except vmdk and qcow which do not support
|
||||
# smaller backing files.
|
||||
_supported_fmt qcow2 qed
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
_supported_os Linux
|
||||
|
||||
# Choose a size that is not necessarily a cluster size multiple for image
|
||||
|
||||
@@ -39,7 +39,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
|
||||
# This tests qcow2-specific low-level functionality
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
# We want to test compat=0.10, which does not support external data
|
||||
# files or refcount widths other than 16
|
||||
_unsupported_imgopts data_file 'refcount_bits=\([^1]\|.\([^6]\|$\)\)'
|
||||
|
||||
@@ -37,7 +37,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
_supported_fmt qcow qcow2 vmdk qed
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
_supported_os Linux
|
||||
_unsupported_imgopts "subformat=monolithicFlat" \
|
||||
"subformat=twoGbMaxExtentFlat" \
|
||||
|
||||
@@ -42,7 +42,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
|
||||
# This tests qcow2-specific low-level functionality
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
# Only qcow2v3 and later supports feature bits;
|
||||
# qcow2.py does not support external data files;
|
||||
# this test requires a cluster size large enough for the feature table
|
||||
|
||||
@@ -37,7 +37,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
_supported_fmt qcow qcow2 vmdk qed
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
_unsupported_imgopts "subformat=monolithicFlat" \
|
||||
"subformat=twoGbMaxExtentFlat" \
|
||||
"subformat=twoGbMaxExtentSparse" \
|
||||
|
||||
@@ -37,7 +37,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
_supported_fmt qcow2 qed
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
_supported_os Linux
|
||||
|
||||
CLUSTER_SIZE=2M
|
||||
|
||||
@@ -40,7 +40,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
_supported_os Linux
|
||||
_default_cache_mode writethrough
|
||||
_supported_cache_modes writethrough
|
||||
|
||||
@@ -37,7 +37,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
# data_file does not support compressed clusters
|
||||
_unsupported_imgopts data_file
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
_supported_fmt qcow2 qed
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
|
||||
echo
|
||||
echo "== Creating images =="
|
||||
|
||||
@@ -37,7 +37,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
|
||||
echo
|
||||
echo "creating too large image (1 EB)"
|
||||
|
||||
@@ -46,7 +46,7 @@ _filter_io_error()
|
||||
|
||||
# This tests qcow2-specific low-level functionality
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
_supported_os Linux
|
||||
# These tests only work for compat=1.1 images without an external
|
||||
# data file with refcount_bits=16
|
||||
|
||||
@@ -37,7 +37,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
_require_drivers blkdebug blkverify
|
||||
# blkdebug can only inject errors on bs->file, not on the data_file,
|
||||
# so thie test does not work with external data files
|
||||
|
||||
@@ -37,7 +37,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file nfs
|
||||
_supported_proto file nfs fuse
|
||||
|
||||
# Some containers (e.g. non-x86 on Travis) do not allow large files
|
||||
_require_large_file 4G
|
||||
|
||||
@@ -38,7 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
_supported_os Linux
|
||||
# - Internal snapshots are (currently) impossible with refcount_bits=1,
|
||||
# and generally impossible with external data files
|
||||
|
||||
@@ -37,7 +37,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
# Because anything other than 16 would change the output of qemu_io -c info
|
||||
_unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)'
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.filter
|
||||
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file nfs
|
||||
_supported_proto file nfs fuse
|
||||
# External data files do not support compressed clusters
|
||||
_unsupported_imgopts data_file
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.qemu
|
||||
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
_supported_os Linux
|
||||
_supported_cache_modes writethrough none writeback
|
||||
_default_cache_mode none writeback
|
||||
|
||||
@@ -44,7 +44,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
. ./common.qemu
|
||||
|
||||
_supported_fmt qcow2
|
||||
_supported_proto file
|
||||
_supported_proto file fuse
|
||||
|
||||
size_smaller=5M
|
||||
size_larger=100M
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user