summaryrefslogtreecommitdiffstats
path: root/tools/reporter.c
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2008-12-04 15:54:26 +0000
committerPeter Rajnoha <prajnoha@redhat.com>2008-12-04 15:54:26 +0000
commitb47952641ae481341886969e9986427ea707cea7 (patch)
treec7e2e5eadab4fa8d0922a8a99167aaea0c38fdf3 /tools/reporter.c
parent9d9589d173ae67329e419a99b8155f44ca7525c8 (diff)
downloadlvm2-b47952641ae481341886969e9986427ea707cea7.tar.gz
lvm2-b47952641ae481341886969e9986427ea707cea7.tar.xz
lvm2-b47952641ae481341886969e9986427ea707cea7.zip
Added displayable_lvs_in_vg and lv_is_displayable functions to deal with
the counts of visible LVs from user's perspective consistently throughout the code.
Diffstat (limited to 'tools/reporter.c')
-rw-r--r--tools/reporter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/reporter.c b/tools/reporter.c
index e95ed5e8..d1907438 100644
--- a/tools/reporter.c
+++ b/tools/reporter.c
@@ -36,7 +36,7 @@ static int _vgs_single(struct cmd_context *cmd __attribute((unused)),
static int _lvs_single(struct cmd_context *cmd, struct logical_volume *lv,
void *handle)
{
- if (!arg_count(cmd, all_ARG) && !lv_is_visible(lv))
+ if (!arg_count(cmd, all_ARG) && !lv_is_displayable(lv))
return ECMD_PROCESSED;
if (!report_object(handle, lv->vg, lv, NULL, NULL, NULL))
@@ -102,7 +102,7 @@ static int _pvsegs_sub_single(struct cmd_context *cmd __attribute((unused)),
static int _lvsegs_single(struct cmd_context *cmd, struct logical_volume *lv,
void *handle)
{
- if (!arg_count(cmd, all_ARG) && !lv_is_visible(lv))
+ if (!arg_count(cmd, all_ARG) && !lv_is_displayable(lv))
return ECMD_PROCESSED;
return process_each_segment_in_lv(cmd, lv, handle, _segs_single);