diff options
author | Milan Broz <mbroz@redhat.com> | 2009-05-13 21:27:43 +0000 |
---|---|---|
committer | Milan Broz <mbroz@redhat.com> | 2009-05-13 21:27:43 +0000 |
commit | afd9ba98c17a5ee81dbef10f24ee21d0a8984b02 (patch) | |
tree | 2ad3d71bf3527373c8f9076b492858e63ca0c40e /lib/format1 | |
parent | 59d8429cb30a9e6c46d9d66581f8993d83eb1580 (diff) | |
download | lvm2-afd9ba98c17a5ee81dbef10f24ee21d0a8984b02.tar.gz lvm2-afd9ba98c17a5ee81dbef10f24ee21d0a8984b02.tar.xz lvm2-afd9ba98c17a5ee81dbef10f24ee21d0a8984b02.zip |
Merge lv_is_displayable and lv_is_visible.
Displayable and visible is the same thing.
volumes_count(vg) is now vg_visible_lvs() and always
returns number of LVs from user perspective.
Diffstat (limited to 'lib/format1')
-rw-r--r-- | lib/format1/import-export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/format1/import-export.c b/lib/format1/import-export.c index 5250e484..c0a89c5a 100644 --- a/lib/format1/import-export.c +++ b/lib/format1/import-export.c @@ -282,7 +282,7 @@ int export_vg(struct vg_disk *vgd, struct volume_group *vg) vgd->vg_status |= VG_EXTENDABLE; vgd->lv_max = vg->max_lv; - vgd->lv_cur = volumes_count(vg) + snapshot_count(vg); + vgd->lv_cur = vg_visible_lvs(vg) + snapshot_count(vg); vgd->pv_max = vg->max_pv; vgd->pv_cur = vg->pv_count; |