diff options
author | Alasdair Kergon <agk@redhat.com> | 2003-07-04 22:34:56 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2003-07-04 22:34:56 +0000 |
commit | 914c97239fe2dcc551ce28f2b1b40af8c7797369 (patch) | |
tree | be45472e984e6098a1a8e02fd1ad1e0f1532bb41 /lib/locking/no_locking.c | |
parent | 8ac97125399fb2cbcad7ae61e49f4af1a021ce25 (diff) | |
download | lvm2-914c97239fe2dcc551ce28f2b1b40af8c7797369.tar.gz lvm2-914c97239fe2dcc551ce28f2b1b40af8c7797369.tar.xz lvm2-914c97239fe2dcc551ce28f2b1b40af8c7797369.zip |
Another sync point - numerous fixes & clean ups.
Diffstat (limited to 'lib/locking/no_locking.c')
-rw-r--r-- | lib/locking/no_locking.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/locking/no_locking.c b/lib/locking/no_locking.c index 79f23b88..f849152d 100644 --- a/lib/locking/no_locking.c +++ b/lib/locking/no_locking.c @@ -10,6 +10,7 @@ #include "locking_types.h" #include "lvm-string.h" #include "activate.h" +#include "lvmcache.h" #include <signal.h> @@ -32,6 +33,15 @@ static int _no_lock_resource(struct cmd_context *cmd, const char *resource, { switch (flags & LCK_SCOPE_MASK) { case LCK_VG: + switch (flags & LCK_TYPE_MASK) { + case LCK_UNLOCK: + lvmcache_unlock_vgname(resource); + break; + default: + lvmcache_lock_vgname(resource, + (flags & LCK_TYPE_MASK) == + LCK_READ); + } break; case LCK_LV: switch (flags & LCK_TYPE_MASK) { |