diff options
author | Neil Brown <neilb@suse.de> | 2006-12-21 07:10:52 +0100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-12-21 07:10:52 +0100 |
commit | 8382f19bdcc6d2d1de92154e11129acdcaab10fa (patch) | |
tree | 3b3c93a6ad6189d6354de81714fc8959de8378f5 /kernel-patch-2.6.18.6 | |
parent | Centralise code for copying uuid (diff) | |
download | mdadm-8382f19bdcc6d2d1de92154e11129acdcaab10fa.tar.xz mdadm-8382f19bdcc6d2d1de92154e11129acdcaab10fa.zip |
Add new mode: --incremental
--incremental allows arrays to be assembled one device at a time.
This is expected to be used with udev.
Diffstat (limited to 'kernel-patch-2.6.18.6')
-rw-r--r-- | kernel-patch-2.6.18.6 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/kernel-patch-2.6.18.6 b/kernel-patch-2.6.18.6 new file mode 100644 index 00000000..e702e14a --- /dev/null +++ b/kernel-patch-2.6.18.6 @@ -0,0 +1,35 @@ +Signed-off-by: Neil Brown <neilb@suse.de> + +### Diffstat output + ./drivers/md/md.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff .prev/drivers/md/md.c ./drivers/md/md.c +--- .prev/drivers/md/md.c 2006-12-21 17:08:23.000000000 +1100 ++++ ./drivers/md/md.c 2006-12-21 17:08:26.000000000 +1100 +@@ -1783,7 +1783,8 @@ state_store(mdk_rdev_t *rdev, const char + else { + mddev_t *mddev = rdev->mddev; + kick_rdev_from_array(rdev); +- md_update_sb(mddev); ++ if (mddev->pers) ++ md_update_sb(mddev); + md_new_event(mddev); + err = 0; + } +@@ -1995,6 +1996,7 @@ static mdk_rdev_t *md_import_device(dev_ + + rdev->desc_nr = -1; + rdev->saved_raid_disk = -1; ++ rdev->raid_disk = -1; + rdev->flags = 0; + rdev->data_offset = 0; + rdev->sb_events = 0; +@@ -3993,6 +3995,7 @@ static int set_array_info(mddev_t * mdde + mddev->major_version = info->major_version; + mddev->minor_version = info->minor_version; + mddev->patch_version = info->patch_version; ++ mddev->persistent = ! info->not_persistent; + return 0; + } + mddev->major_version = MD_MAJOR_VERSION; |