summaryrefslogtreecommitdiff
path: root/tools/vgscan.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2003-11-21 19:54:40 +0000
committerAlasdair Kergon <agk@redhat.com>2003-11-21 19:54:40 +0000
commite19f549a11069cdc4ed958c73986bd75349df469 (patch)
treeaec3e6f575dda8178be901267691693798e9cb99 /tools/vgscan.c
parentb2bb72641f0953e42331a880ab27546326b72273 (diff)
downloadlvm2-e19f549a11069cdc4ed958c73986bd75349df469.tar.gz
Fix support for PVs on read only devices. [Still must set LVs read only]
Diffstat (limited to 'tools/vgscan.c')
-rw-r--r--tools/vgscan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/vgscan.c b/tools/vgscan.c
index d9856c4cf..f56b2963b 100644
--- a/tools/vgscan.c
+++ b/tools/vgscan.c
@@ -30,6 +30,7 @@ static int vgscan_single(struct cmd_context *cmd, const char *vg_name,
if (!consistent) {
unlock_vg(cmd, vg_name);
+ dev_close_all();
log_error("Volume group \"%s\" inconsistent", vg_name);
/* Don't allow partial switch to this program */
if (!(vg = recover_vg(cmd, vg_name, LCK_VG_WRITE)))