summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-08-09 04:25:27 +0000
committerNeil Brown <neilb@suse.de>2005-08-09 04:25:27 +0000
commit586ed40547a380b9f8bd58aa87c12fbaf6eabf65 (patch)
treee075277fb987eeba9e18ca0ed1e21aee4cd61a46 /Assemble.c
parent8068890f1116c6fc5ae87596bb6b8272f79d2d1c (diff)
downloadmdadm-586ed40547a380b9f8bd58aa87c12fbaf6eabf65.tar.gz
mdadm-586ed40547a380b9f8bd58aa87c12fbaf6eabf65.tar.xz
mdadm-586ed40547a380b9f8bd58aa87c12fbaf6eabf65.zip
Support fixing of byte-swapped superblocks.
Good for moving between little-endian and big-endian. Still needs documentation. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Assemble.c b/Assemble.c
index 20183ae..739db51 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);