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:
parent
bbc67abeed
commit
7cf5feb7d2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user