]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super1.c
Remove getinfo_super_n and do some other cleaning up.
[thirdparty/mdadm.git] / super1.c
index a6a308a60a286a8eee5e88e6e799914bbd9d2487..bd9d1c93c33fe991be3d3fcf295154661a1468c2 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -789,6 +789,9 @@ static void add_to_super1(struct supertype *st, mdu_disk_info_t *dk,
        else
                *rp = 0xfffe;
 
+       sb->dev_number = __cpu_to_le32(dk->number);
+       sb->sb_csum = calc_sb_1_csum(sb);
+
        dip = (struct devinfo **)&st->info;
        while (*dip)
                dip = &(*dip)->next;