diff options
author | Petr Rockai <prockai@redhat.com> | 2009-07-15 05:47:55 +0000 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2009-07-15 05:47:55 +0000 |
commit | 19089ba3311945a75e55df21e35a02b19177350f (patch) | |
tree | 0e4a63a9e49b88124b6ae1383b25b1ea6288d3df /tools/vgreduce.c | |
parent | b5fd1544d5abd61012a672b24b99b72dcafb47a1 (diff) | |
download | lvm2-19089ba3311945a75e55df21e35a02b19177350f.tar.gz lvm2-19089ba3311945a75e55df21e35a02b19177350f.tar.xz lvm2-19089ba3311945a75e55df21e35a02b19177350f.zip |
Refuse to open VG with MISSING_PVs for update unless handles_missing_pvs is set.
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r-- | tools/vgreduce.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c index b3b6dba4..f22363ed 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -510,8 +510,10 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv) log_verbose("Finding volume group \"%s\"", vg_name); - if (repairing) + if (repairing) { init_ignore_suspended_devices(1); + cmd->handles_missing_pvs = 1; + } vg = vg_read_for_update(cmd, vg_name, NULL, READ_ALLOW_EXPORTED); if (vg_read_error(vg) == FAILED_ALLOCATION || |