]> git.baikalelectronics.ru Git - kernel.git/commit
md: expose the degraded status of an assembled array through sysfs
authorIustin Pop <iusty@k1024.org>
Wed, 17 Oct 2007 06:30:54 +0000 (23:30 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:43:03 +0000 (08:43 -0700)
commit158631675222701861c0cc535ceef7374c779bd4
treec7dd6ab8ece277fe71c9626aeeda2e79dd259476
parent7e5696cf22935b029ea5c8c7872c1440454284f0
md: expose the degraded status of an assembled array through sysfs

The 'degraded' attribute is useful to quickly determine if the array is
degraded, instead of parsing 'mdadm -D' output or relying on the other
techniques (number of working devices against number of defined devices,
etc.).  The md code already keeps track of this attribute, so it's useful to
export it.

Signed-off-by: Iustin Pop <iusty@k1024.org>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md.c