summaryrefslogtreecommitdiffstats
path: root/lib/locking/no_locking.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2011-01-12 20:42:50 +0000
committerAlasdair Kergon <agk@redhat.com>2011-01-12 20:42:50 +0000
commita8de276520b7b4cc252fb12be1714d5008180fd2 (patch)
treed15ba09807b64500b75ff3923f9500f1388056ee /lib/locking/no_locking.c
parentfd1aaee33f60cbddfb74d9e64b261257fe9e710f (diff)
downloadlvm2-a8de276520b7b4cc252fb12be1714d5008180fd2.tar.gz
lvm2-a8de276520b7b4cc252fb12be1714d5008180fd2.tar.xz
lvm2-a8de276520b7b4cc252fb12be1714d5008180fd2.zip
Replace fs_unlock by sync_local_dev_names to notify local clvmd. (2.02.80)
Introduce sync_local_dev_names and CLVMD_CMD_SYNC_NAMES to issue fs_unlock.
Diffstat (limited to 'lib/locking/no_locking.c')
-rw-r--r--lib/locking/no_locking.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/locking/no_locking.c b/lib/locking/no_locking.c
index 8c4110f5..3ad0d38b 100644
--- a/lib/locking/no_locking.c
+++ b/lib/locking/no_locking.c
@@ -38,6 +38,8 @@ static int _no_lock_resource(struct cmd_context *cmd, const char *resource,
{
switch (flags & LCK_SCOPE_MASK) {
case LCK_VG:
+ if (!strcmp(resource, VG_SYNC_NAMES))
+ fs_unlock();
break;
case LCK_LV:
switch (flags & LCK_TYPE_MASK) {