diff options
author | Milan Broz <mbroz@redhat.com> | 2009-02-25 23:29:06 +0000 |
---|---|---|
committer | Milan Broz <mbroz@redhat.com> | 2009-02-25 23:29:06 +0000 |
commit | 7b1c853bd901477a99161a4f6e05bee461c490dc (patch) | |
tree | 4d5d6d740f46535c500a41ebad88114d6e04aa3d /tools/pvremove.c | |
parent | edf47283de397e86055086e19d3012d0c02602d0 (diff) | |
download | lvm2-7b1c853bd901477a99161a4f6e05bee461c490dc.tar.gz lvm2-7b1c853bd901477a99161a4f6e05bee461c490dc.tar.xz lvm2-7b1c853bd901477a99161a4f6e05bee461c490dc.zip |
Try to avoid full rescan if label scan is enough.
Diffstat (limited to 'tools/pvremove.c')
-rw-r--r-- | tools/pvremove.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pvremove.c b/tools/pvremove.c index 9912711c..3d754807 100644 --- a/tools/pvremove.c +++ b/tools/pvremove.c @@ -33,7 +33,7 @@ static int pvremove_check(struct cmd_context *cmd, const char *name) /* Is there a pv here already? */ /* If not, this is an error unless you used -f. */ - if (!(pv = pv_read(cmd, name, &mdas, NULL, 1))) { + if (!(pv = pv_read(cmd, name, &mdas, NULL, 1, 0))) { if (arg_count(cmd, force_ARG)) return 1; log_error("Physical Volume %s not found", name); @@ -53,7 +53,7 @@ static int pvremove_check(struct cmd_context *cmd, const char *name) "failed."); return 0; } - if (!(pv = pv_read(cmd, name, NULL, NULL, 1))) { + if (!(pv = pv_read(cmd, name, NULL, NULL, 1, 0))) { log_error("Failed to read physical volume %s", name); return 0; } |