Re: [PATCH v3] file-posix: detect the lock using the real file

2020-12-14 Thread Feng Li
Hi, Daniel Thanks for your reply. I have just ended my trip, sorry for my late response. I will send out the v4. Daniel P. Berrangé 于2020年12月11日周五 上午12:55写道: > > On Fri, Dec 11, 2020 at 12:38:19AM +0800, Li Feng wrote: > > This patch addresses this issue: > > When accessing a volume on an NFS fil

Re: [PATCH v3] file-posix: detect the lock using the real file

2020-12-10 Thread Daniel P . Berrangé
On Fri, Dec 11, 2020 at 12:38:19AM +0800, Li Feng wrote: > This patch addresses this issue: > When accessing a volume on an NFS filesystem without supporting the file lock, > tools, like qemu-img, will complain "Failed to lock byte 100". > > Add a new function 'qemu_has_file_lock' to detect if the

[PATCH v3] file-posix: detect the lock using the real file

2020-12-10 Thread Li Feng
This patch addresses this issue: When accessing a volume on an NFS filesystem without supporting the file lock, tools, like qemu-img, will complain "Failed to lock byte 100". Add a new function 'qemu_has_file_lock' to detect if the filesystem supports locks or not. And when the drive is auto mode