]> sourceware.org Git - lvm2.git/commitdiff
Remove redundant check in _lvs_single now that the caller
authorMike Snitzer <snitzer@redhat.com>
Fri, 23 Apr 2010 19:10:20 +0000 (19:10 +0000)
committerMike Snitzer <snitzer@redhat.com>
Fri, 23 Apr 2010 19:10:20 +0000 (19:10 +0000)
(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

index bd3c1169e6c4b09aab3c7b8fc2c0cdab6b5c684b..1332cc39783ca34c40a9e06d671966bd64a90c87 100644 (file)
@@ -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;
This page took 0.037631 seconds and 5 git commands to generate.