bb4afe8c1c
devices get checked - Endian patch for uuid generation
16 lines
544 B
Diff
16 lines
544 B
Diff
diff -up mdadm-3.0-devel3/util.c.foo mdadm-3.0-devel3/util.c
|
|
--- mdadm-3.0-devel3/util.c.foo 2009-07-09 18:57:47.000000000 -0400
|
|
+++ mdadm-3.0-devel3/util.c 2009-07-09 18:58:09.000000000 -0400
|
|
@@ -282,7 +282,11 @@ char *fname_from_uuid(struct supertype *
|
|
char *c = buf;
|
|
strcpy(c, "UUID-");
|
|
c += strlen(c);
|
|
+#if __BYTE_ORDER == BIG_ENDIAN
|
|
+ copy_uuid(uuid, info->uuid, st->ss->swapuuid || !strcmp(st->ss->name,"0.90"));
|
|
+#else
|
|
copy_uuid(uuid, info->uuid, st->ss->swapuuid);
|
|
+#endif
|
|
for (i = 0; i < 4; i++) {
|
|
id = uuid[i];
|
|
if (i)
|