diff options
author | Alasdair Kergon <agk@redhat.com> | 2001-11-21 19:32:35 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2001-11-21 19:32:35 +0000 |
commit | 3080a754451caa789400f143f4091df89c3c5416 (patch) | |
tree | de5cd9e2627f2b20a440fec6d431d40b1640fa6b /tools/vgscan.c | |
parent | ab2799eb1497175e3a6eb62462e3fe857a37bb65 (diff) | |
download | lvm2-3080a754451caa789400f143f4091df89c3c5416.tar.gz lvm2-3080a754451caa789400f143f4091df89c3c5416.tar.xz lvm2-3080a754451caa789400f143f4091df89c3c5416.zip |
o activation & active status tests
o lvdisplay fields from kernel
o update lv->size on resize
Diffstat (limited to 'tools/vgscan.c')
-rw-r--r-- | tools/vgscan.c | 10 |
1 files changed, 6 insertions, 4 deletions
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; } |