[lvm-devel] LVM2/tools reporter.c

snitzer at sourceware.org snitzer at sourceware.org
Fri Apr 23 19:10:22 UTC 2010


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	snitzer at sourceware.org	2010-04-23 19:10:21

Modified files:
	tools          : reporter.c 

Log message:
	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.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/reporter.c.diff?cvsroot=lvm2&r1=1.59&r2=1.60

--- LVM2/tools/reporter.c	2010/03/16 15:30:49	1.59
+++ LVM2/tools/reporter.c	2010/04/23 19:10:20	1.60
@@ -33,9 +33,6 @@
 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;




More information about the lvm-devel mailing list