diff options
author | Petr Rockai <prockai@redhat.com> | 2009-07-15 05:49:47 +0000 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2009-07-15 05:49:47 +0000 |
commit | 6ee7d2aa53b19b37d87954823a4a215d49ec2370 (patch) | |
tree | de2d4a27b8037cac12ed4c2ca1815f78bd054dc0 /tools/lvchange.c | |
parent | 51dfb124e10598a65745beffde5c4641668c683a (diff) | |
download | lvm2-6ee7d2aa53b19b37d87954823a4a215d49ec2370.tar.gz lvm2-6ee7d2aa53b19b37d87954823a4a215d49ec2370.tar.xz lvm2-6ee7d2aa53b19b37d87954823a4a215d49ec2370.zip |
Remove lockingfailed().
We provide a lock type that behaves like no_locking, but is not
clustered. Moreover, it also forbids any write locks. This magically (and
consistently) prevents use of clustered VGs, or changing local VGs with
--ignorelockingfailure. As a bonus, we can remove the special hacks in a few
places. Of course, people looking for trouble can always set their locking_type
to 0 to override.
Diffstat (limited to 'tools/lvchange.c')
-rw-r--r-- | tools/lvchange.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c index 26393289..27a50d95 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -119,12 +119,6 @@ static int lvchange_availability(struct cmd_context *cmd, if (!deactivate_lv(cmd, lv)) return_0; } else { - if (lockingfailed() && (vg_is_clustered(lv->vg))) { - log_verbose("Locking failed: ignoring clustered " - "logical volume %s", lv->name); - return 0; - } - if (lv_is_origin(lv) || (activate == CHANGE_AE)) { log_verbose("Activating logical volume \"%s\" " "exclusively", lv->name); |