]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[SCSI] osd_uld: Add osdname & systemid sysfs at scsi_osd class
authorBoaz Harrosh <bharrosh@panasas.com>
Wed, 24 Oct 2012 21:51:41 +0000 (14:51 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 27 Nov 2012 04:59:34 +0000 (08:59 +0400)
commit51976a8c85cec0c62e410bc38b8a11dbc690764d
treef794cefb30f5cbe532b4abc0de32349eb1757983
parentafd5e34b2bb34881d3a789e62486814a49b47faa
[SCSI] osd_uld: Add osdname & systemid sysfs at scsi_osd class

This patch adds the support for the following two read-only sysfs attributes
to scsi_osd class members : osdname & systemid

These attributes will show up as below in sysfs class hierarchy:
/sys/class/scsi_osd/osdX/osdname
/sys/class/scsi_osd/osdX/systemid

The osdname & systemid are OSD device attributes which uniquely
identify a device on the network, while it's IP and certainly
it's /dev/osdX device path might change.
Userspace utilities (e.g. mkfs.exofs) can parse these attributes to
identify the correct OSD in safer and faster way.

(Today osd apps open each device in the system and send a
 attributes query for these, in order to access the user
 requested device)

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/osd/osd_uld.c