All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Use new sb type
@ 2008-01-28 17:22 Jan Engelhardt
  2008-01-28 18:19 ` David Greaves
  0 siblings, 1 reply; 18+ messages in thread
From: Jan Engelhardt @ 2008-01-28 17:22 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid


This makes 1.0 the default sb type for new arrays.

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>

---
 Create.c |    6 ------
 super0.c |    4 +---
 super1.c |    2 +-
 3 files changed, 2 insertions(+), 10 deletions(-)

Index: mdadm-2.6.4/Create.c
===================================================================
--- mdadm-2.6.4.orig/Create.c
+++ mdadm-2.6.4/Create.c
@@ -241,12 +241,6 @@ int Create(struct supertype *st, char *m
 				fprintf(stderr, Name ": internal error - no default metadata style\n");
 				exit(2);
 			}
-			if (st->ss->major != 0 ||
-			    st->minor_version != 90)
-				fprintf(stderr, Name ": Defaulting to version"
-					" %d.%d metadata\n",
-					st->ss->major,
-					st->minor_version);
 		}
 		freesize = st->ss->avail_size(st, ldsize >> 9);
 		if (freesize == 0) {
Index: mdadm-2.6.4/super0.c
===================================================================
--- mdadm-2.6.4.orig/super0.c
+++ mdadm-2.6.4/super0.c
@@ -820,9 +820,7 @@ static struct supertype *match_metadata_
 	st->minor_version = 90;
 	st->max_devs = MD_SB_DISKS;
 	if (strcmp(arg, "0") == 0 ||
-	    strcmp(arg, "0.90") == 0 ||
-	    strcmp(arg, "default") == 0
-		)
+	    strcmp(arg, "0.90") == 0)
 		return st;
 
 	st->minor_version = 9; /* flag for 'byte-swapped' */
Index: mdadm-2.6.4/super1.c
===================================================================
--- mdadm-2.6.4.orig/super1.c
+++ mdadm-2.6.4/super1.c
@@ -1143,7 +1143,7 @@ static struct supertype *match_metadata_
 
 	st->ss = &super1;
 	st->max_devs = 384;
-	if (strcmp(arg, "1.0") == 0) {
+	if (strcmp(arg, "1.0") == 0 || strcmp(arg, "default") == 0) {
 		st->minor_version = 0;
 		return st;
 	}


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2008-02-11 18:28 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-28 17:22 [PATCH] Use new sb type Jan Engelhardt
2008-01-28 18:19 ` David Greaves
2008-01-28 18:47   ` Peter Rabbitson
2008-01-28 19:32     ` David Greaves
2008-01-29  4:09       ` Tim Southerwood
2008-01-29  9:37         ` Peter Rabbitson
2008-01-29 11:25           ` Yes, but please provide the clue (was Re: [PATCH] Use new sb type) Moshe Yudkowsky
2008-01-28 19:10   ` [PATCH] Use new sb type Jan Engelhardt
2008-01-29 23:08   ` Bill Davidsen
2008-01-30 12:53     ` David Greaves
2008-02-08  0:23     ` Jan Engelhardt
2008-02-10 10:34       ` David Greaves
2008-02-10 12:12         ` Jan Engelhardt
2008-02-10 12:27           ` David Greaves
2008-02-10 12:30             ` Jan Engelhardt
2008-02-11  3:32               ` Bill Davidsen
2008-02-11  8:21               ` David Greaves
2008-02-11 18:28                 ` Bill Davidsen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.