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/metadata/snapshot_manip.c | |
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/metadata/snapshot_manip.c')
-rw-r--r-- | lib/metadata/snapshot_manip.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/metadata/snapshot_manip.c b/lib/metadata/snapshot_manip.c index 36765626..4b8691a3 100644 --- a/lib/metadata/snapshot_manip.c +++ b/lib/metadata/snapshot_manip.c @@ -43,14 +43,6 @@ int lv_is_visible(const struct logical_volume *lv) return lv->status & VISIBLE_LV ? 1 : 0; } -int lv_is_displayable(const struct logical_volume *lv) -{ - if (lv->status & SNAPSHOT) - return 0; - - return (lv->status & VISIBLE_LV) || lv_is_cow(lv) ? 1 : 0; -} - int lv_is_virtual_origin(const struct logical_volume *lv) { return (lv->status & VIRTUAL_ORIGIN) ? 1 : 0; |