]> git.baikalelectronics.ru Git - kernel.git/commit
md: don't allow arrays to contain devices with bad blocks.
authorNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:31:47 +0000 (11:31 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:31:47 +0000 (11:31 +1000)
commit6418a323f0ef1a2ffed3d9629e3d3287e2627181
tree10d75ecac6091f955cbb8a60b79f443355ca4ea8
parentcda9c243066ed3d0c15d0349e769c95999102347
md: don't allow arrays to contain devices with bad blocks.

As no personality understand bad block lists yet, we must
reject any device that is known to contain bad blocks.
As the personalities get taught, these tests can be removed.

This only applies to raid1/raid5/raid10.
For linear/raid0/multipath/faulty the whole concept of bad blocks
doesn't mean anything so there is no point adding the checks.

Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Namhyung Kim <namhyung@gmail.com>
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c