]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-ddf.c
DDF: _write_super_to_disk: fix anchor header type
[thirdparty/mdadm.git] / super-ddf.c
index d0b2ac7163c9443ae5e52b926c4a503aaa2a37c5..faaf0a7ca9e0ba5eed7e8fdd961fcb43d158ee7d 100644 (file)
@@ -3158,6 +3158,7 @@ static int _write_super_to_disk(struct ddf_super *ddf, struct dl *d)
        memcpy(&ddf->primary, &ddf->anchor, 512);
        memcpy(&ddf->secondary, &ddf->anchor, 512);
 
+       ddf->anchor.type = DDF_HEADER_ANCHOR;
        ddf->anchor.openflag = 0xFF; /* 'open' means nothing */
        ddf->anchor.seq = cpu_to_be32(0xFFFFFFFF); /* no sequencing in anchor */
        ddf->anchor.crc = calc_crc(&ddf->anchor, 512);