1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

aux: loop doesn't support zeroing discard

To avoid logging unsupported WRITE_ZEROES with loop,
disable usage for this backend device.
This commit is contained in:
Zdenek Kabelac 2023-04-23 00:02:33 +02:00
parent bbc67abeed
commit 7cf5feb7d2

View File

@ -669,6 +669,7 @@ prepare_loop() {
done done
fi fi
test -n "$LOOP" # confirm or fail test -n "$LOOP" # confirm or fail
touch NO_BLKDISCARD_Z # loop devices do not support WRITE_ZEROS
BACKING_DEV=$LOOP BACKING_DEV=$LOOP
echo "$LOOP" > LOOP echo "$LOOP" > LOOP
echo "$LOOP" > BACKING_DEV echo "$LOOP" > BACKING_DEV