summaryrefslogtreecommitdiffstats
path: root/super1.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-07-12 20:27:39 +1000
committerNeil Brown <neilb@suse.de>2008-07-12 20:27:39 +1000
commitd2ca644994d642c31b41242140e1fe819711c8f7 (patch)
tree787148e3e6e9bb102e608e08a7baca53509ca9d1 /super1.c
parent0d481d3723398828c81963dcd58b1bf768e2c0c2 (diff)
downloadmdadm-d2ca644994d642c31b41242140e1fe819711c8f7.tar.gz
mdadm-d2ca644994d642c31b41242140e1fe819711c8f7.tar.xz
mdadm-d2ca644994d642c31b41242140e1fe819711c8f7.zip
Remove getinfo_super_n and do some other cleaning up.
Getting close to a sensible description of what some of the superswitch methods are supposed to do!
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/super1.c b/super1.c
index a6a308a..bd9d1c9 100644
--- 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;