summaryrefslogtreecommitdiffstats
path: root/tools/lvchange.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2005-01-12 22:58:21 +0000
committerAlasdair Kergon <agk@redhat.com>2005-01-12 22:58:21 +0000
commite9c761b86958a37361f76e2c16285720744130cb (patch)
tree014db3b2f04cc9e819265b11e853fda25107fbb0 /tools/lvchange.c
parent8e2dd0dfb2d2eb5954ad33f06544feb405110b2e (diff)
downloadlvm2-e9c761b86958a37361f76e2c16285720744130cb.tar.gz
lvm2-e9c761b86958a37361f76e2c16285720744130cb.tar.xz
lvm2-e9c761b86958a37361f76e2c16285720744130cb.zip
Only ask libdevmapper for open_count when we need it.
Diffstat (limited to 'tools/lvchange.c')
-rw-r--r--tools/lvchange.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c
index e9ec8d2a..d5ac0acd 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -256,7 +256,7 @@ static int lvchange_persistent(struct cmd_context *cmd,
log_error("Major number must be specified with -My");
return 0;
}
- if (lv_info(lv, &info) && info.exists &&
+ if (lv_info(lv, &info, 0) && info.exists &&
!arg_count(cmd, force_ARG)) {
if (yes_no_prompt("Logical volume %s will be "
"deactivated temporarily. "