]> xenbits.xensource.com Git - libvirt.git/commit
virlockspace: Allow caller to specify start and length offset in virLockSpaceAcquireR...
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 14 Aug 2018 10:25:36 +0000 (12:25 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Sep 2018 15:12:53 +0000 (17:12 +0200)
commitafd5a27575e8b6a494d2728552fe0e89c71e32b4
treeceb6685c906c01bd73b2096b887bde1e3822cc8e
parentb916a25e8ac98e93da204855fc5a5ff85f95b2df
virlockspace: Allow caller to specify start and length offset in virLockSpaceAcquireResource

So far the virLockSpaceAcquireResource() locks the first byte in
the underlying file. But caller might want to lock other range.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/locking/lock_daemon_dispatch.c
src/util/virlockspace.c
src/util/virlockspace.h
tests/virlockspacetest.c