[dm-devel] [Patch 6 of 14] Device Mapper Mirror

Jonathan Brassow jbrassow at redhat.com
Tue Nov 7 16:02:45 UTC 2006


(Please note that this patch is already in 2.6.19-rc4-mm2.  The tarballs
given in the original mail take this into account.)
 brassow

Index: linux-2.6.18.1/drivers/md/dm-raid1.c
===================================================================
--- linux-2.6.18.1.orig/drivers/md/dm-raid1.c	2006-11-01 14:03:43.000000000 -0600
+++ linux-2.6.18.1/drivers/md/dm-raid1.c	2006-11-01 14:16:14.000000000 -0600
@@ -1239,9 +1239,9 @@ static int mirror_status(struct dm_targe
 
 	case STATUSTYPE_TABLE:
 		sz = ms->rh.log->type->status(ms->rh.log, type, result, maxlen);
-		DMEMIT("%d ", ms->nr_mirrors);
+		DMEMIT("%d", ms->nr_mirrors);
 		for (m = 0; m < ms->nr_mirrors; m++)
-			DMEMIT("%s %llu ", ms->mirror[m].dev->name,
+			DMEMIT(" %s %llu", ms->mirror[m].dev->name,
 				(unsigned long long)ms->mirror[m].offset);
 	}
 





More information about the dm-devel mailing list