]> err.no Git - linux-2.6/commit
[PATCH] md: allow hot-adding devices to arrays with non-persistant superblocks.
authorNeilBrown <neilb@cse.unsw.edu.au>
Fri, 9 Sep 2005 23:23:50 +0000 (16:23 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 23:39:11 +0000 (16:39 -0700)
commit7b1e35f6d666693e8f376ce02242efca3ec09aaf
treec471a526b69594ce1bd7daa44ab50c51a0c6bfcf
parent3178b0dbdf67322f6506582e494bdf553cc85c32
[PATCH] md: allow hot-adding devices to arrays with non-persistant superblocks.

It is possibly (and occasionally useful) to have a raid1 without persistent
superblocks.  The code in add_new_disk for adding a device to such an array
always tries to read a superblock.

This will obviously fail.

So do the appropriate test and call md_import_device with
appropriate args.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c