Thread (4 messages) 4 messages, 3 authors, 2017-11-13

Re: [PATCH] sysfs: include faulty drive in disk count

From: Jes Sorensen <hidden>
Date: 2017-11-09 20:46:08

On 11/07/2017 10:49 AM, Mariusz Tkaczyk wrote:
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 <redacted>
---
 sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Applied!

Thanks,
Jes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help