Re: [PATCH V4] file-posix: allow -EBUSY error during ioctl(fd, BLKZEROOUT, range) on block

2021-03-25 Thread ChangLimin
>On Thu, Mar 25, 2021 at 8:07 AM ChangLimin wrote: >>On Wed, Mar 24, 2021 at 4:52 PM Max Reitz wrote: >>On 22.03.21 10:25, ChangLimin wrote: >>> For Linux 5.10/5.11, qemu write zeros to a multipath device using >>> ioctl(fd, BLKZEROOUT, range) with cache

Re: [PATCH V4] file-posix: allow -EBUSY error during ioctl(fd, BLKZEROOUT, range) on block

2021-03-25 Thread ChangLimin
>On Wed, Mar 24, 2021 at 4:52 PM Max Reitz wrote: >On 22.03.21 10:25, ChangLimin wrote: >> For Linux 5.10/5.11, qemu write zeros to a multipath device using >> ioctl(fd, BLKZEROOUT, range) with cache none or directsync return -EBUSY >> permanently. > >So as far as I

[PATCH V4] file-posix: allow -EBUSY error during ioctl(fd, BLKZEROOUT, range) on block

2021-03-22 Thread ChangLimin
/stable/linux.git/commit/?id=384d87ef2c954fc58e6c5fd8253e4a1984f5fe02 Fixed in Linux 5.12: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=56887cffe946bb0a90c74429fa94d6110a73119d Signed-off-by: ChangLimin --- block/file-posix.c | 8 ++-- 1 file changed, 6

[PATCH V3] file-posix: allow -EBUSY -EINVAL errors during write zeros on block

2021-03-09 Thread ChangLimin
-dca9a626c...@kernel.dk/ Signed-off-by: ChangLimin --- block/file-posix.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/block/file-posix.c b/block/file-posix.c index 05079b40ca..4e132db929 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -1629,8 +1629,13

Re: [PATCH] file-posix: allow -EBUSY errors during write zeros on block

2021-03-03 Thread ChangLimin
rise_linux/8/html/configuring_device_mapper_multipath/index Where multipath is configured to a SAN LUN, ioctl(fd, BLKZEROOUT, range) to the /dev/dm-x return EBUSY permanently since Linux 5.10. ChangLimin >> Signed-off-by: ChangLimin >> --- >> block/file-posix.c | 7 ++- >>

[PATCH V2] file-posix: allow -EBUSY -EINVAL errors during write zeros on block

2021-03-02 Thread ChangLimin
). Reference commit in Linux 5.10: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=384d87ef2c954fc58e6c5fd8253e4a1984f5fe02 Signed-off-by: ChangLimin --- block/file-posix.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/block/file-posix.c b/block

[PATCH] file-posix: allow -EBUSY errors during write zeros on block

2021-03-01 Thread ChangLimin
5.10: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=384d87ef2c954fc58e6c5fd8253e4a1984f5fe02 Signed-off-by: ChangLimin ---  block/file-posix.c | 7 ++-  1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/block/file-posix.c b/block/file-posix.c index

Re: [Qemu-block] [Qemu-devel] Block format 'raw' does not support the option 'locking' when disable image locking with option locking=off

2017-10-26 Thread Changlimin
, October 26, 2017 3:33 PM To: changlimin 00148 (Cloud); Fam Zheng Cc: qemu-de...@nongnu.org; Qemu-block Subject: Re: [Qemu-devel] Block format 'raw' does not support the option 'locking' when disable image locking with option locking=off On 2017-10-26 09:18, Changlimin wrote: > If the qcow2 f

Re: [Qemu-block] [Qemu-devel] qemu-img crash when resize a qcow2 file created with preallocation=full/falloc .

2017-10-25 Thread Changlimin
The latest version from git e822e81e350825dd94f41ee2538ff1432b812eb9 Also ubuntu 17.10 -Original Message- From: Thomas Huth [mailto:th...@redhat.com] Sent: Wednesday, October 25, 2017 3:22 PM To: changlimin 00148 (Cloud); qemu-de...@nongnu.org Cc: Qemu-block; Max Reitz Subject: Re: [Qemu