From: Sven Schuetz Date: Tue, 10 Jun 2008 16:20:59 +0000 (+0200) Subject: [SCSI] zfcp: Add port_state attribute to sysfs X-Git-Tag: v2.6.27-rc1~1059^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85a82392fe6fe7620d8fe0eb694f926cefe62e1f;p=pandora-kernel.git [SCSI] zfcp: Add port_state attribute to sysfs The sysfs attribute /sys/class/fc_host/hostX/port_state was not set by zfcp so far. Now, the appropriate members of the fc_function_template struct are set during its initialziation. The first is a boolean to show the port state. The second is a function pointer to the function zfcp_get_host_port_state, which reads the port state from our adapter status bits and calls fc_host_port_state with the approriate port state afterwards. Signed-off-by: Sven Schuetz Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley --- Reading git-diff-tree failed