]> sourceware.org Git - lvm2.git/commit
lockd: allow nolocking and readonly options
authorDavid Teigland <teigland@redhat.com>
Fri, 10 Jul 2015 22:20:22 +0000 (17:20 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 13 Jul 2015 18:15:51 +0000 (13:15 -0500)
commit9cfa27f9c56edad26c2830562233b48e06bb4802
tree7a64259de7018eff6cc3177392240dd6043e2c30
parentc39f3026a8280bb4c62c785138302cd1475facb6
lockd: allow nolocking and readonly options

When --nolocking is used (by vgs, lvs, pvs):

. don't use lvmlockd at all (set use_lvmlockd to 0)
. allow lockd VGs to be read

When --readonly is used (by vgs, lvs, pvs, vgdisplay, lvdisplay,
pvdisplay, lvmdiskscan, lvscan, pvscan, vgcfgbackup):

. skip actual lvmlockd locking calls
. allow lockd VGs to be read
. check that only shared gl/vg locks are being requested
  (even though the actually locking is being skipped)
. check that no LV locks are requested, because no LVs
  should be activated or used in readonly mode
. disable using lvmetad so VGs are read from disk

It is important to note the limited commands that accept
the --nolocking and --readonly options, i.e. no commands
that change/write a VG or change/activate LVs accept these
options, only commands that read VGs.
lib/locking/lvmlockd.c
tools/lvmcmdline.c
This page took 0.038367 seconds and 5 git commands to generate.