]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
md: Allow re-add to work on array without bitmaps
authorNeil Brown <neilb@suse.de>
Wed, 22 Aug 2007 22:56:48 +0000 (00:56 +0200)
committerAdrian Bunk <bunk@stusta.de>
Wed, 22 Aug 2007 22:56:48 +0000 (00:56 +0200)
commit32b268195c968892eec3cdb328e2594e379a658b
treeb80c629b01d5ff32de27185d0a3a315a45bdcbf4
parent287440c90e8bf967622072c0766d1c680d3c16ae
md: Allow re-add to work on array without bitmaps

When an array has a bitmap, a device can be removed and re-added and only
blocks changes since the removal (as recorded in the bitmap) will be resynced.

It should be possible to do a similar thing to arrays without bitmaps.  i.e.
if a device is removed and re-added and *no* changes have been made in the
interim, then the add should not require a resync.

This patch allows that option.  This means that when assembling an array one
device at a time (e.g.  during device discovery) the array can be enabled
read-only as soon as enough devices are available, but extra devices can still
be added without causing a resync.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
drivers/md/md.c
drivers/md/raid1.c