diff options
author | Alasdair Kergon <agk@redhat.com> | 2005-01-12 22:58:21 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2005-01-12 22:58:21 +0000 |
commit | e9c761b86958a37361f76e2c16285720744130cb (patch) | |
tree | 014db3b2f04cc9e819265b11e853fda25107fbb0 /tools/lvchange.c | |
parent | 8e2dd0dfb2d2eb5954ad33f06544feb405110b2e (diff) | |
download | lvm2-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.c | 2 |
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. " |