md: expose the degraded status of an assembled array through sysfs
commitd7f3d291a0e1330f341fdf1128b2d12fff7932ee
authorIustin Pop <iusty@k1024.org>
Wed, 17 Oct 2007 06:30:54 +0000 (16 23:30 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:43:03 +0000 (17 08:43 -0700)
treec7dd6ab8ece277fe71c9626aeeda2e79dd259476
parent2b12ab6d33f413aabb623197eeecaad5c216e6ae
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