]> sourceware.org Git - lvm2.git/commit
locking: Introduce LCK_ACTIVATION.
authorAlasdair G Kergon <agk@redhat.com>
Fri, 20 Jun 2014 12:24:02 +0000 (13:24 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 20 Jun 2014 12:24:02 +0000 (13:24 +0100)
commit78533f72d30f6e840f66e0aae89126ef139c1f2c
tree9d49d5b4e09fa8b600795e62cbb31933245882cd
parentf29ae59a4d88ff0f76cfd84a6061222ae178438b
locking: Introduce LCK_ACTIVATION.

Take a local file lock to prevent concurrent activation/deactivation of LVs.
Thin/cache types and an extension for cluster support are excluded for
now.

'lvchange -ay $lv' and 'lvchange -an $lv' should no longer cause trouble
if issued concurrently: the new lock should make sure they
activate/deactivate $lv one-after-the-other, instead of overlapping.

(If anyone wants to experiment with the cluster patch, please get in touch.)
WHATS_NEW
lib/locking/file_locking.c
lib/locking/locking.c
lib/locking/locking.h
lib/locking/no_locking.c
This page took 0.02988 seconds and 5 git commands to generate.