]> git.karo-electronics.de Git - linux-beck.git/commit
md: beginnings of bad block management.
authorNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:31:46 +0000 (11:31 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 Jul 2011 01:31:46 +0000 (11:31 +1000)
commit2230dfe4ccc3add340dc6d437965b2de1d269fde
treefc45b727ad2e1a148e7d20f327b45a3afc474e9d
parenta519b26dbe6533416d21b552053b0bf687f878d7
md: beginnings of bad block management.

This the first step in allowing md to track bad-blocks per-device so
that we can fail individual blocks rather than the whole device.

This patch just adds a data structure for recording bad blocks, with
routines to add, remove, search the list.

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