summaryrefslogtreecommitdiffstats
path: root/tools/lvchange.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/lvchange.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/lvchange.c')
-rw-r--r--tools/lvchange.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c
index 97c6044f..fa40d7cc 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -37,7 +37,7 @@ static int lvchange_permission(struct cmd_context *cmd,
}
if ((lv->status & MIRRORED) && (vg_is_clustered(lv->vg)) &&
- lv_info(cmd, lv, &info, 0, 0) && info.exists) {
+ lv_info(cmd, lv, 0, &info, 0, 0) && info.exists) {
log_error("Cannot change permissions of mirror \"%s\" "
"while active.", lv->name);
return 0;
@@ -86,7 +86,7 @@ static int lvchange_monitoring(struct cmd_context *cmd,
{
struct lvinfo info;
- if (!lv_info(cmd, lv, &info, 0, 0) || !info.exists) {
+ if (!lv_info(cmd, lv, 0, &info, 0, 0) || !info.exists) {
log_error("Logical volume, %s, is not active", lv->name);
return 0;
}
@@ -96,7 +96,7 @@ static int lvchange_monitoring(struct cmd_context *cmd,
return 1;
if ((dmeventd_monitor_mode() != DMEVENTD_MONITOR_IGNORE) &&
- !monitor_dev_for_events(cmd, lv, dmeventd_monitor_mode()))
+ !monitor_dev_for_events(cmd, lv, 0, dmeventd_monitor_mode()))
return_0;
return 1;
@@ -107,7 +107,7 @@ static int lvchange_background_polling(struct cmd_context *cmd,
{
struct lvinfo info;
- if (!lv_info(cmd, lv, &info, 0, 0) || !info.exists) {
+ if (!lv_info(cmd, lv, 0, &info, 0, 0) || !info.exists) {
log_error("Logical volume, %s, is not active", lv->name);
return 0;
}
@@ -189,7 +189,7 @@ static int lvchange_resync(struct cmd_context *cmd,
return 0;
}
- if (lv_info(cmd, lv, &info, 1, 0)) {
+ if (lv_info(cmd, lv, 0, &info, 1, 0)) {
if (info.open_count) {
log_error("Can't resync open logical volume \"%s\"",
lv->name);
@@ -446,7 +446,7 @@ static int lvchange_persistent(struct cmd_context *cmd,
log_error("Major number must be specified with -My");
return 0;
}
- if (lv_info(cmd, lv, &info, 0, 0) && info.exists)
+ if (lv_info(cmd, lv, 0, &info, 0, 0) && info.exists)
active = 1;
if (active && !arg_count(cmd, force_ARG) &&
yes_no_prompt("Logical volume %s will be "