diff options
author | Alasdair Kergon <agk@redhat.com> | 2010-05-19 02:36:33 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2010-05-19 02:36:33 +0000 |
commit | 1d837442bf01730d9bf9423261ebd4fa2c523480 (patch) | |
tree | a14db85924f3ea7bd86c87068756a0a0617d5f84 /lib/locking/file_locking.c | |
parent | 34220fe292b8f08c8f29cde26dea2c81451395d1 (diff) | |
download | lvm2-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.c | 2 |
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 |