summaryrefslogtreecommitdiff
path: root/mdadm.h
diff options
context:
space:
mode:
authorTomasz Majchrzak <tomasz.majchrzak@intel.com>2016-10-27 10:53:43 +0200
committerJes Sorensen <Jes.Sorensen@redhat.com>2016-11-28 17:45:56 -0500
commit6dc1785fdb1d1c8733f0a773f4bbbdd2e6158fb6 (patch)
tree6f9d0a1f3f4e02e076c197c9892354977db08525 /mdadm.h
parentbb758ccad0e9e47af565d4e23b43aa5a8ceb9886 (diff)
downloadmdadm-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 62a373b..ccdda78 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -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