summaryrefslogtreecommitdiffstats
path: root/tools/lvchange.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2007-11-12 20:51:54 +0000
committerAlasdair Kergon <agk@redhat.com>2007-11-12 20:51:54 +0000
commita6b22cf31779114474d275b4c036c97ce3203634 (patch)
treea58b3c8fa5c52d06575c39a93127985c368b5252 /tools/lvchange.c
parent6dd60469ba342ce26c1772e8db4c0d8618da9f15 (diff)
downloadlvm2-a6b22cf31779114474d275b4c036c97ce3203634.tar.gz
lvm2-a6b22cf31779114474d275b4c036c97ce3203634.tar.xz
lvm2-a6b22cf31779114474d275b4c036c97ce3203634.zip
readahead activation code (but no dm support yet)
Diffstat (limited to 'tools/lvchange.c')
-rw-r--r--tools/lvchange.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c
index 152cd2d4..8f7f2423 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -36,7 +36,7 @@ static int lvchange_permission(struct cmd_context *cmd,
}
if ((lv->status & MIRRORED) && (lv->vg->status & CLUSTERED) &&
- lv_info(cmd, lv, &info, 0) && info.exists) {
+ lv_info(cmd, lv, &info, 0, 0) && info.exists) {
log_error("Cannot change permissions of mirror \"%s\" "
"while active.", lv->name);
return 0;
@@ -85,7 +85,7 @@ static int lvchange_monitoring(struct cmd_context *cmd,
{
struct lvinfo info;
- if (!lv_info(cmd, lv, &info, 0) || !info.exists) {
+ if (!lv_info(cmd, lv, &info, 0, 0) || !info.exists) {
log_error("Logical volume, %s, is not active", lv->name);
return 0;
}
@@ -195,7 +195,7 @@ static int lvchange_resync(struct cmd_context *cmd,
return 0;
}
- if (lv_info(cmd, lv, &info, 1)) {
+ if (lv_info(cmd, lv, &info, 1, 0)) {
if (info.open_count) {
log_error("Can't resync open logical volume \"%s\"",
lv->name);
@@ -447,7 +447,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) && info.exists)
+ if (lv_info(cmd, lv, &info, 0, 0) && info.exists)
active = 1;
if (active && !arg_count(cmd, force_ARG) &&
yes_no_prompt("Logical volume %s will be "