From b004ea2d7ff0737f7477772fea8ffd4136b7a567 Mon Sep 17 00:00:00 2001 From: Mike Snitzer Date: Fri, 23 Apr 2010 19:10:20 +0000 Subject: [PATCH] Remove redundant check in _lvs_single now that the caller (process_each_lv_in_vg) provides it. Also, removing this check from _lvs_single now allows displaying hidden LVs that are specifically named on the command line. --- tools/reporter.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/reporter.c b/tools/reporter.c index bd3c1169e..1332cc397 100644 --- a/tools/reporter.c +++ b/tools/reporter.c @@ -33,9 +33,6 @@ 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)) - return ECMD_PROCESSED; - if (!report_object(handle, lv->vg, lv, NULL, NULL, NULL)) { stack; return ECMD_FAILED; -- 2.43.5