1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/locking
David Teigland 9cfa27f9c5 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.
2015-07-13 13:15:51 -05:00
..
.exported_symbols Pre-release cleanups. 2009-05-21 03:04:52 +00:00
cluster_locking.c cleanup: constify activation usage of lv pointer 2014-09-24 10:54:47 +02:00
external_locking.c cleanup: constify activation usage of lv pointer 2014-09-24 10:54:47 +02:00
file_locking.c file-locking: skip locking of VG_SYNC_NAMES 2014-10-24 16:39:30 +02:00
locking_types.h pre-release 2014-11-11 14:13:00 +00:00
locking.c cleanup: constify activation usage of lv pointer 2014-09-24 10:54:47 +02:00
locking.h locking: Add missing error handling. 2015-06-30 18:54:38 +01:00
lvmlockd.c lockd: allow nolocking and readonly options 2015-07-13 13:15:51 -05:00
lvmlockd.h pre-release 2015-07-03 16:34:40 +01:00
Makefile.in Install plugins to subdirs 2010-05-06 10:07:46 +00:00
no_locking.c cleanup: constify activation usage of lv pointer 2014-09-24 10:54:47 +02:00