From b47952641ae481341886969e9986427ea707cea7 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Thu, 4 Dec 2008 15:54:26 +0000 Subject: 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. --- tools/reporter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/reporter.c') 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); -- cgit