summaryrefslogtreecommitdiffstats
path: root/tools/vgchange.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2010-08-17 16:25:32 +0000
committerAlasdair Kergon <agk@redhat.com>2010-08-17 16:25:32 +0000
commit2d6fcbf67d131c7969bd60798b2bfe3cc2316205 (patch)
tree60361dd2d3ea9dc9eb4f264eb6c65d1872caa572 /tools/vgchange.c
parent85ed4030024b80335f03e0a1636b4a592b443425 (diff)
downloadlvm2-2d6fcbf67d131c7969bd60798b2bfe3cc2316205.tar.gz
lvm2-2d6fcbf67d131c7969bd60798b2bfe3cc2316205.tar.xz
lvm2-2d6fcbf67d131c7969bd60798b2bfe3cc2316205.zip
Allow internal suspend and resume of origin without its snapshots.
Diffstat (limited to 'tools/vgchange.c')
-rw-r--r--tools/vgchange.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c
index 36ff0c83..b16fc54d 100644
--- a/tools/vgchange.c
+++ b/tools/vgchange.c
@@ -30,7 +30,7 @@ static int _monitor_lvs_in_vg(struct cmd_context *cmd,
dm_list_iterate_items(lvl, &vg->lvs) {
lv = lvl->lv;
- if (!lv_info(cmd, lv, &info, 0, 0))
+ if (!lv_info(cmd, lv, 0, &info, 0, 0))
lv_active = 0;
else
lv_active = info.exists;
@@ -41,7 +41,7 @@ static int _monitor_lvs_in_vg(struct cmd_context *cmd,
if ((lv->status & PVMOVE) || !lv_active)
continue;
- if (!monitor_dev_for_events(cmd, lv, reg)) {
+ if (!monitor_dev_for_events(cmd, lv, 0, reg)) {
r = ECMD_FAILED;
continue;
} else
@@ -63,7 +63,7 @@ static int _poll_lvs_in_vg(struct cmd_context *cmd,
dm_list_iterate_items(lvl, &vg->lvs) {
lv = lvl->lv;
- if (!lv_info(cmd, lv, &info, 0, 0))
+ if (!lv_info(cmd, lv, 0, &info, 0, 0))
lv_active = 0;
else
lv_active = info.exists;