mdadm/mdadm-3.0-endian-FAIL.patch
Doug Ledford bb4afe8c1c - Improved raid-check script as well as the ability to configure what
devices get checked
- Endian patch for uuid generation
2009-07-24 17:43:39 +00:00

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)