summaryrefslogtreecommitdiffstats
path: root/lib/locking/file_locking.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2010-05-19 02:36:33 +0000
committerAlasdair Kergon <agk@redhat.com>2010-05-19 02:36:33 +0000
commit1d837442bf01730d9bf9423261ebd4fa2c523480 (patch)
treea14db85924f3ea7bd86c87068756a0a0617d5f84 /lib/locking/file_locking.c
parent34220fe292b8f08c8f29cde26dea2c81451395d1 (diff)
downloadlvm2-1d837442bf01730d9bf9423261ebd4fa2c523480.tar.gz
lvm2-1d837442bf01730d9bf9423261ebd4fa2c523480.tar.xz
lvm2-1d837442bf01730d9bf9423261ebd4fa2c523480.zip
Add is_global_vg and split out from is_orphan_vg.
Diffstat (limited to 'lib/locking/file_locking.c')
-rw-r--r--lib/locking/file_locking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/locking/file_locking.c b/lib/locking/file_locking.c
index a6ef086a..46232cc1 100644
--- a/lib/locking/file_locking.c
+++ b/lib/locking/file_locking.c
@@ -265,7 +265,7 @@ static int _file_lock_resource(struct cmd_context *cmd, const char *resource,
if (flags & LCK_CACHE)
break;
- if (is_orphan_vg(resource))
+ if (is_orphan_vg(resource) || is_global_vg(resource))
dm_snprintf(lockfile, sizeof(lockfile),
"%s/P_%s", _lock_dir, resource + 1);
else