]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-ddf.c
Assemble: allow members of containers to be assembled and auto-assembled.
[thirdparty/mdadm.git] / super-ddf.c
index db6476b14c0115e0c9af3481d0c367d6df178956..98e75ad6948902cbc1a751f853e99c6d8b067471 100644 (file)
@@ -446,7 +446,10 @@ static int calc_crc(void *buf, int len)
 
        newcrc = crc32(0, buf, len);
        ddf->crc = oldcrc;
-       return newcrc;
+       /* The crc is store (like everything) bigendian, so convert
+        * here for simplicity
+        */
+       return __cpu_to_be32(newcrc);
 }
 
 static int load_ddf_header(int fd, unsigned long long lba,
@@ -1134,7 +1137,7 @@ static void brief_examine_super_ddf(struct supertype *st)
        char nbuf[64];
        getinfo_super_ddf(st, &info);
        fname_from_uuid(st, &info, nbuf, ':');
-       printf("ARRAY /dev/ddf metadata=ddf UUID=%s\n", nbuf + 5);
+       printf("ARRAY metadata=ddf UUID=%s\n", nbuf + 5);
 }
 
 static void detail_super_ddf(struct supertype *st, char *homehost)