]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super1.c
Assorted Fixes for multiple bugs.
[thirdparty/mdadm.git] / super1.c
index 6bd5ceca05c997b3cc0076d52e31da3834204045..3c24f3481553dc1b953e9da860064f34cf9f17cd 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -28,7 +28,7 @@
  */
 
 #include "mdadm.h"
-
+#include <endian.h>
 #include "asm/byteorder.h"
 /*
  * The version-1 superblock :
@@ -804,4 +804,9 @@ struct superswitch super1 = {
        .match_metadata_desc = match_metadata_desc1,
        .avail_size = avail_size1,
        .major = 1,
+#if __BYTE_ORDER == BIG_ENDIAN
+       .swapuuid = 0,
+#else
+       .swapuuid = 1,
+#endif
 };