diff options
author | Tomasz Majchrzak <tomasz.majchrzak@intel.com> | 2016-10-27 10:53:43 +0200 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@redhat.com> | 2016-11-28 17:45:56 -0500 |
commit | 6dc1785fdb1d1c8733f0a773f4bbbdd2e6158fb6 (patch) | |
tree | 6f9d0a1f3f4e02e076c197c9892354977db08525 /mdadm.h | |
parent | bb758ccad0e9e47af565d4e23b43aa5a8ceb9886 (diff) | |
download | mdadm-6dc1785fdb1d1c8733f0a773f4bbbdd2e6158fb6.tar.gz |
mdmon: bad block support for external metadata - sysfs file open
Open 'badblocks' and 'unacknowledged_bad_blocks' sysfs files for each
disk in the array. Add them to the list of files observed by monitor.
Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -311,6 +311,8 @@ struct mdinfo { /* Device info for mdmon: */ int recovery_fd; int state_fd; + int bb_fd; + int ubb_fd; #define DS_FAULTY 1 #define DS_INSYNC 2 #define DS_WRITE_MOSTLY 4 |