main - aux: loop doesn't support zeroing discard

Zdenek Kabelac <[email protected]>
Newsgroups gmane.linux.lvm.devel
Message-ID <[email protected]>
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(+)

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

--
lvm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/lvm-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.