summaryrefslogtreecommitdiff
path: root/lib/metadata/pv_map.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2002-01-10 15:09:51 +0000
committerAlasdair Kergon <agk@redhat.com>2002-01-10 15:09:51 +0000
commitb80f32dd0a9be32deca834c9c04dca74dedc400d (patch)
tree5761f01689b31eb70f0d5e273e9e640fa67dd170 /lib/metadata/pv_map.c
parentfc63d04f429924f31ac4b4aea49d06cf5e5f83c9 (diff)
downloadlvm2-b80f32dd0a9be32deca834c9c04dca74dedc400d.tar.gz
Clarify terminology:
VG is resizeable - PVs can be added or removed PV is allocatable - free extents on it may be allocated to LVs
Diffstat (limited to 'lib/metadata/pv_map.c')
-rw-r--r--lib/metadata/pv_map.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/metadata/pv_map.c b/lib/metadata/pv_map.c
index f15055449..a8a76948c 100644
--- a/lib/metadata/pv_map.c
+++ b/lib/metadata/pv_map.c
@@ -19,6 +19,9 @@ static int _create_maps(struct pool *mem, struct list *pvs, struct list *maps)
list_iterate(tmp, pvs) {
pv = &(list_item(tmp, struct pv_list)->pv);
+ if (!(pv->status & ALLOCATABLE_PV))
+ continue;
+
if (!(pvm = pool_zalloc(mem, sizeof(*pvm)))) {
stack;
return 0;