From 586ed40547a380b9f8bd58aa87c12fbaf6eabf65 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 9 Aug 2005 04:25:27 +0000 Subject: Support fixing of byte-swapped superblocks. Good for moving between little-endian and big-endian. Still needs documentation. Signed-off-by: Neil Brown --- Assemble.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Assemble.c') diff --git a/Assemble.c b/Assemble.c index 20183ae1..739db512 100644 --- a/Assemble.c +++ b/Assemble.c @@ -334,6 +334,9 @@ int Assemble(struct supertype *st, char *mddev, int mdfd, free(super); super = NULL; + if (update && strcmp(update, "byteorder")==0) + st->minor_version = 90; + if (devcnt == 0) { fprintf(stderr, Name ": no devices found for %s\n", mddev); -- cgit v1.2.3