]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
DDF: Implement store_super_ddf
authormwilck@arcor.de <mwilck@arcor.de>
Wed, 3 Jul 2013 20:27:45 +0000 (22:27 +0200)
committerNeilBrown <neilb@suse.de>
Mon, 8 Jul 2013 05:28:31 +0000 (15:28 +1000)
commitdbf98368fe8c152584c1f77bd66976b9f88dae55
tree0b7e7d1bb440153dc83d7af72819c1e5f64b3542
parenta4057a88a2f0959690a7eb3e5cbfa1a585a0a71a
DDF: Implement store_super_ddf

This patch implements the previously unsupported case where
store_super_ddf is called with a non-empty superblock.

For DDF, writing meta data to just one disk makes no sense.
We would run the risk of writing inconsistent meta data
to the devices. So just call __write_init_super_ddf and
write to all devices, including the one passed by the caller.

This patch assumes that the device to store the superblock on
has already been added to the DDF structure. Otherwise, an
error message will be emitted.

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c