summaryrefslogtreecommitdiffstats
path: root/blockdev-nbd.c
diff options
context:
space:
mode:
authorVivek Goyal2020-12-07 19:30:20 +0100
committerDr. David Alan Gilbert2020-12-18 11:08:24 +0100
commite7e8aa8aead2874f789a5d4a84cddb9b099fbd1c (patch)
treed19dba1a2e8311800271e87ac37c5e77fa3ebcff /blockdev-nbd.c
parentvirtiofsd: Set up posix_lock hash table for root inode (diff)
downloadqemu-e7e8aa8aead2874f789a5d4a84cddb9b099fbd1c.tar.gz
qemu-e7e8aa8aead2874f789a5d4a84cddb9b099fbd1c.tar.xz
qemu-e7e8aa8aead2874f789a5d4a84cddb9b099fbd1c.zip
virtiofsd: Disable posix_lock hash table if remote locks are not enabled
If remote posix locks are not enabled (lo->posix_lock == false), then disable code paths taken to initialize inode->posix_lock hash table and corresponding destruction and search etc. lo_getlk() and lo_setlk() have been modified to return ENOSYS if daemon does not support posix lock but client still sends a lock/unlock request. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Message-Id: <20201207183021.22752-3-vgoyal@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'blockdev-nbd.c')
0 files changed, 0 insertions, 0 deletions