summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2023-04-23 00:02:33 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2023-04-23 00:02:33 +0200
commit7cf5feb7d245d22d4968b95f3b7cfb6467461ff2 (patch)
treeb1f92d09e43afc29e8e219610e1158e73e6b1b76
parentbbc67abeed8a7a5f4a31c6dd0d3bf4cb26c6a50a (diff)
downloadlvm2-7cf5feb7d245d22d4968b95f3b7cfb6467461ff2.tar.gz
aux: loop doesn't support zeroing discard
To avoid logging unsupported WRITE_ZEROES with loop, disable usage for this backend device.
-rw-r--r--test/lib/aux.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
index d6689e3b8..a385df76b 100644
--- a/test/lib/aux.sh
+++ b/test/lib/aux.sh
@@ -669,6 +669,7 @@ prepare_loop() {
done
fi
test -n "$LOOP" # confirm or fail
+ touch NO_BLKDISCARD_Z # loop devices do not support WRITE_ZEROS
BACKING_DEV=$LOOP
echo "$LOOP" > LOOP
echo "$LOOP" > BACKING_DEV