summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorMariusz Tkaczyk <mariusz.tkaczyk@intel.com>2017-11-07 16:49:56 +0100
committerJes Sorensen <jsorensen@fb.com>2017-11-09 21:45:52 +0100
commitfe05dc43d81e0c91cc84498e7229008748986b71 (patch)
treea28c035f429f9b8c002ab92eed576ed62658f2b0 /mdadm.h
parentimsm: More precise message when spanned raid is created (diff)
downloadmdadm-fe05dc43d81e0c91cc84498e7229008748986b71.tar.xz
mdadm-fe05dc43d81e0c91cc84498e7229008748986b71.zip
sysfs: include faulty drive in disk count
When the disk fails, it goes into faulty state first and it is removed from the array in a while. It gives mdadm monitor a chance to see the disk has failed and notify an event (e.g. FailSpare). It doesn't work when sysfs is used to get a number of disks in the array as it skips faulty disk. ioctl implementation doesn't differentiate between active and faulty disk. Do the same for sysfs then. It should not matter that number of disks reported is greater than list of disk structures returned by the call because the same approach already takes place for offline disks. Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'mdadm.h')
0 files changed, 0 insertions, 0 deletions