[S390] dasd: Add sysfs attribute status and generate uevents.
authorHorst Hummel <horst.hummel@de.ibm.com>
Fri, 27 Apr 2007 14:01:47 +0000 (16:01 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 27 Apr 2007 14:01:44 +0000 (16:01 +0200)
commit4dfd5c4593e69e9d399dd9e01d184dc534408f7e
tree3f148b0c30de75b8ec3a43b247da9d06b24573bc
parentbe7962856d299a0f231ac36f89f4a89cbecfe0ff
[S390] dasd: Add sysfs attribute status and generate uevents.

This patch adds a sysfs-attribute 'status' to make the DASD device-status
accessible from user-space. In addition, the DASD driver generates an
uevent(CHANGE) for the ccw-device on each device-status change.
This enables user-space applications (e.g. udev) to do related processing.

Signed-off-by: Horst Hummel <horst.hummel@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c
drivers/s390/block/dasd_devmap.c