From 3080a754451caa789400f143f4091df89c3c5416 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 21 Nov 2001 19:32:35 +0000 Subject: o activation & active status tests o lvdisplay fields from kernel o update lv->size on resize --- tools/vgscan.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tools/vgscan.c') diff --git a/tools/vgscan.c b/tools/vgscan.c index b7435bbe..420fa29d 100644 --- a/tools/vgscan.c +++ b/tools/vgscan.c @@ -50,20 +50,22 @@ static int vgscan_single(const char *vg_name) log_print("Found %sactive volume group %s", (vg->status & ACTIVE) ? "" : "in", vg_name); +/******* Ignore active flag if (!(vg->status & ACTIVE)) { + return 0; vg->status |= ACTIVE; if (!(fid->ops->vg_write(fid, vg))) { log_error("Failed to activate volume group %s", vg_name); return ECMD_FAILED; } - } +*********/ - /* FIXME: Creates /dev/vg */ - activate_lvs_in_vg(vg); + - log_print("Volume Group %s activated", vg_name); + log_print("%d logical volumes in volume group %s activated", + activate_lvs_in_vg(vg), vg_name); return 0; } -- cgit