diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2011-07-25 14:48:43 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-08-27 10:36:06 -0400 |
commit | 1d063c17298d7cd26cfe350f1e93e1727b4aa53f (patch) | |
tree | ce7996d0b3fe0903287eac2649c79658b5c9c528 /drivers/scsi/be2iscsi | |
parent | 3128c6c73cdf3df92c3165bfb785ae50114d18bf (diff) |
[SCSI] iscsi class: sysfs group is_visible callout for session attrs
The iscsi class currently does not support writable sysfs
attrs for LLD sysfs settings. This patch converts the
iscsi class and driver's session attrs to use the attribute
container sysfs group and the sysfs group's is_visible callout
to be able to support readable or writable sysfs attrs.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r-- | drivers/scsi/be2iscsi/be_iscsi.c | 19 | ||||
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 15 |
2 files changed, 19 insertions, 15 deletions
diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c index 87b7ae1ef488..ecd19bb3b207 100644 --- a/drivers/scsi/be2iscsi/be_iscsi.c +++ b/drivers/scsi/be2iscsi/be_iscsi.c | |||
@@ -750,6 +750,25 @@ mode_t be2iscsi_attr_is_visible(int param_type, int param) | |||
750 | case ISCSI_PARAM_PERSISTENT_PORT: | 750 | case ISCSI_PARAM_PERSISTENT_PORT: |
751 | case ISCSI_PARAM_PING_TMO: | 751 | case ISCSI_PARAM_PING_TMO: |
752 | case ISCSI_PARAM_RECV_TMO: | 752 | case ISCSI_PARAM_RECV_TMO: |
753 | case ISCSI_PARAM_INITIAL_R2T_EN: | ||
754 | case ISCSI_PARAM_MAX_R2T: | ||
755 | case ISCSI_PARAM_IMM_DATA_EN: | ||
756 | case ISCSI_PARAM_FIRST_BURST: | ||
757 | case ISCSI_PARAM_MAX_BURST: | ||
758 | case ISCSI_PARAM_PDU_INORDER_EN: | ||
759 | case ISCSI_PARAM_DATASEQ_INORDER_EN: | ||
760 | case ISCSI_PARAM_ERL: | ||
761 | case ISCSI_PARAM_TARGET_NAME: | ||
762 | case ISCSI_PARAM_TPGT: | ||
763 | case ISCSI_PARAM_USERNAME: | ||
764 | case ISCSI_PARAM_PASSWORD: | ||
765 | case ISCSI_PARAM_USERNAME_IN: | ||
766 | case ISCSI_PARAM_PASSWORD_IN: | ||
767 | case ISCSI_PARAM_FAST_ABORT: | ||
768 | case ISCSI_PARAM_ABORT_TMO: | ||
769 | case ISCSI_PARAM_LU_RESET_TMO: | ||
770 | case ISCSI_PARAM_IFACE_NAME: | ||
771 | case ISCSI_PARAM_INITIATOR_NAME: | ||
753 | return S_IRUGO; | 772 | return S_IRUGO; |
754 | default: | 773 | default: |
755 | return 0; | 774 | return 0; |
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index d2a3e4a4d024..93a3c708411a 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -4364,21 +4364,6 @@ struct iscsi_transport beiscsi_iscsi_transport = { | |||
4364 | .name = DRV_NAME, | 4364 | .name = DRV_NAME, |
4365 | .caps = CAP_RECOVERY_L0 | CAP_HDRDGST | CAP_TEXT_NEGO | | 4365 | .caps = CAP_RECOVERY_L0 | CAP_HDRDGST | CAP_TEXT_NEGO | |
4366 | CAP_MULTI_R2T | CAP_DATADGST | CAP_DATA_PATH_OFFLOAD, | 4366 | CAP_MULTI_R2T | CAP_DATADGST | CAP_DATA_PATH_OFFLOAD, |
4367 | .param_mask = | ||
4368 | ISCSI_INITIAL_R2T_EN | | ||
4369 | ISCSI_MAX_R2T | | ||
4370 | ISCSI_IMM_DATA_EN | | ||
4371 | ISCSI_FIRST_BURST | | ||
4372 | ISCSI_MAX_BURST | | ||
4373 | ISCSI_PDU_INORDER_EN | | ||
4374 | ISCSI_DATASEQ_INORDER_EN | | ||
4375 | ISCSI_ERL | | ||
4376 | ISCSI_TARGET_NAME | ISCSI_TPGT | | ||
4377 | ISCSI_USERNAME | ISCSI_PASSWORD | | ||
4378 | ISCSI_USERNAME_IN | ISCSI_PASSWORD_IN | | ||
4379 | ISCSI_FAST_ABORT | ISCSI_ABORT_TMO | | ||
4380 | ISCSI_LU_RESET_TMO | | ||
4381 | ISCSI_IFACE_NAME | ISCSI_INITIATOR_NAME, | ||
4382 | .host_param_mask = ISCSI_HOST_HWADDRESS | ISCSI_HOST_IPADDRESS | | 4367 | .host_param_mask = ISCSI_HOST_HWADDRESS | ISCSI_HOST_IPADDRESS | |
4383 | ISCSI_HOST_INITIATOR_NAME, | 4368 | ISCSI_HOST_INITIATOR_NAME, |
4384 | .create_session = beiscsi_session_create, | 4369 | .create_session = beiscsi_session_create, |