]> git.neil.brown.name Git - history.git/commit
[PATCH] md: Make spare handling simple ... personalities know less
authorNeil Brown <neilb@cse.unsw.edu.au>
Fri, 23 Aug 2002 04:26:52 +0000 (21:26 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 23 Aug 2002 04:26:52 +0000 (21:26 -0700)
commitacd8a264eb7be3192c73bfe1f7873d52302c5d10
treee34e17887f71480a45e9c55943d064c03627fc89
parentf39afb8238f18d4b1b157ea31c4306003227dafd
[PATCH] md: Make spare handling simple ... personalities know less

1/ Personalities only know about raid_disks devices.
   Some might be not in_sync and so cannot be read from,
   but must be written to.
- change MD_SB_DISKS to ->raid_disks
- add tests for .write_only

2/ rdev->raid_disk is now -1 for spares.  desc_nr is maintained
   by analyse_sbs and sync_sbs.

3/ spare_inactive method is subsumed into hot_remove_disk
   spare_writable is subsumed into hot_add_disk.
   hot_add_disk decides which slot a new device will hold.

4/ spare_active now finds all non-in_sync devices and marks them
   in_sync.

5/ faulty devices are removed by the md recovery thread as soon
   as they are idle.  Any spares that are available are then added.
drivers/md/md.c
drivers/md/multipath.c
drivers/md/raid1.c
drivers/md/raid5.c
include/linux/raid/md_k.h
include/linux/raid/raid1.h
include/linux/raid/raid5.h