[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] file-posix: check the use_lock before setting the file lo
From: |
Kevin Wolf |
Subject: |
Re: [PATCH v2] file-posix: check the use_lock before setting the file lock |
Date: |
Mon, 7 Dec 2020 16:32:27 +0100 |
Am 07.12.2020 um 12:44 hat Li Feng geschrieben:
> The scenario is that when accessing a volume on an NFS filesystem
> without supporting the file lock, Qemu will complain "Failed to lock
> byte 100", even when setting the file.locking = off.
>
> We should do file lock related operations only when the file.locking is
> enabled, otherwise, the syscall of 'fcnctl' will return non-zero.
>
> Signed-off-by: Li Feng <fengli@smartx.com>
Thanks, applied to the block branch.
Kevin