]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.h
mdmon: bad block support for external metadata - store bad blocks
authorTomasz Majchrzak <tomasz.majchrzak@intel.com>
Thu, 27 Oct 2016 08:53:44 +0000 (10:53 +0200)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 28 Nov 2016 22:48:59 +0000 (17:48 -0500)
commit1ab97c976b3f1cdc6d36d72a42ae863188555732
tree6c9e5948ff3262fc4504ca0032b3bdb7a70ece47
parent6dc1785fdb1d1c8733f0a773f4bbbdd2e6158fb6
mdmon: bad block support for external metadata - store bad blocks

If md has changed the state to 'blocked' and metadata handler supports
bad blocks, try process them first. If metadata handler has successfully
stored bad block, acknowledge it to md via 'badblocks' sysfs file. If
metadata handler has failed to store the new bad block (ie. lack of
space), remove bad block support for a disk by writing "-external_bbl"
to state sysfs file. If all bad blocks have been acknowledged, request
to unblock the array.

Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Acked-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
mdadm.h
monitor.c