]> err.no Git - linux-2.6/commit
[SCSI] scsi_dh: Add 'dh_state' sysfs attribute
authorHannes Reinecke <hare@suse.de>
Thu, 17 Jul 2008 23:52:57 +0000 (16:52 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 26 Jul 2008 19:14:51 +0000 (15:14 -0400)
commit4c05ae52fcb0e27a2ee4a16d1f31f8c547fd4886
tree4a577f6a1932923bfbcb8592f4a4f2a7935616dd
parent765cbc6dad16b87724803e359d6be792ddf08614
[SCSI] scsi_dh: Add 'dh_state' sysfs attribute

Implement a 'dh_state' sdev attribute for dynamic device handler
manipulation. A read on the attribute will return the name of
the currently attached device handler or 'detached' if no handler
is attached.
The attribute allows the following strings to be written:
- The name of the device handler to be attached if the state is
  'detached'.
- 'activate' to trigger path activation if a device handler
  is attached.
- 'detach' to detach the currently attached device handler.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/device_handler/scsi_dh.c