diff options
author | Li Feng <fengli@smartx.com> | 2020-12-07 19:44:06 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2020-12-11 17:52:40 +0100 |
commit | eb43ea16dcb7e6ab01db321b5edac3e593556e7d (patch) | |
tree | bff36c40fd24a15515c6596a5f241a45c2d59ba6 /tests/qapi-schema/doc-interleaved-section.out | |
parent | e6c7964769f68c36e2b20c26f5bf4da91dfa0cac (diff) |
file-posix: check the use_lock before setting the file lock
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 'fcntl' will return non-zero.
Signed-off-by: Li Feng <fengli@smartx.com>
Message-Id: <1607341446-85506-1-git-send-email-fengli@smartx.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qapi-schema/doc-interleaved-section.out')
0 files changed, 0 insertions, 0 deletions