Skip to content
Snippets Groups Projects
Commit eb43ea16 authored by Li Feng's avatar Li Feng Committed by Kevin Wolf
Browse files

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: default avatarLi Feng <fengli@smartx.com>
Message-Id: <1607341446-85506-1-git-send-email-fengli@smartx.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent e6c79647
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment