This is the mail archive of the lvm2-cvs@sourceware.org mailing list for the LVM2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

LVM2/tools lvcreate.c


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	jbrassow@sourceware.org	2011-03-25 21:56:28

Modified files:
	tools          : lvcreate.c 

Log message:
	cosmetic change - swapping one macro for another
	
	When I see 'seg_is_mirrored', I expect the argument to be an lv_segment.
	In this case, it is lvcreate_params.  Both structures, have a 'segtype'
	entry which the macro dereferences.  However, it just seems easier to
	understand if we do 'segtype_is_mirrored' instead.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvcreate.c.diff?cvsroot=lvm2&r1=1.229&r2=1.230

--- LVM2/tools/lvcreate.c	2011/02/18 14:47:31	1.229
+++ LVM2/tools/lvcreate.c	2011/03/25 21:56:28	1.230
@@ -346,7 +346,7 @@
 	lp->mirrors = 1;
 
 	/* Default to 2 mirrored areas if --type mirror */
-	if (seg_is_mirrored(lp))
+	if (segtype_is_mirrored(lp->segtype))
 		lp->mirrors = 2;
 
 	if (arg_count(cmd, mirrors_ARG)) {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]