]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFgraid/head r218212, r218257:
authormav <mav@FreeBSD.org>
Thu, 24 Mar 2011 19:23:42 +0000 (19:23 +0000)
committermav <mav@FreeBSD.org>
Thu, 24 Mar 2011 19:23:42 +0000 (19:23 +0000)
commitba27262ba1ab13c1e02f35018f43d97e2cf8e422
tree6aaecb760a7f40e47e2cdaeae25f5fd86f463cd2
parentda5bb011df534c18f9f3e470e68fd13bd913a7a5
MFgraid/head r218212, r218257:
Introduce new type of BIO_GETATTR -- GEOM::setstate, used to inform lower
GEOM about state of it's providers from the point of upper layers.
Make geom_disk use led(4) subsystem to illuminate states in such fashion:
FAILED - "1" (on), REBUILD - "f5" (slow blink), RESYNC - "f1" (fast blink),
ACTIVE - "0" (off).
LED name should be set for each disk via kern.geom.disk.%s.led sysctl.
Later disk API could be extended to allow disk driver to report this info
in custom way via it's own facilities.
sys/geom/geom.h
sys/geom/geom_disk.c