Skip to contentSkip to conversation

main - aux: loop doesn't support zeroing discard

PATCH Zdenek Kabelac 1 participant 1 message Apr 23, 2023

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7cf5feb7d245d22d4968b95f3b7cfb6467461ff2
Commit:        7cf5feb7d245d22d4968b95f3b7cfb6467461ff2
Parent:        bbc67abeed8a7a5f4a31c6dd0d3bf4cb26c6a50a
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Apr 23 00:02:33 2023 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sun Apr 23 00:02:33 2023 +0200

aux: loop doesn't support zeroing discard

To avoid logging unsupported WRITE_ZEROES with loop, disable usage for this backend device.

---
 test/lib/aux.sh | 1 +
 1 file changed, 1 insertion(+)
test/lib/aux.sh +1 -0
index d6689e3b8..a385df76b 100644
@@ -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