iscsi_tcp: add write permission to max_lun
PATCH 1/1 iscsi_tcp: add write permission to max_lun
Add root write permission to iscsi_tcp max_lun parameter
--- drivers/scsi/iscsi_tcp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/iscsi_tcp.c +1 -1
@@ -56,7 +56,7 @@ static struct scsi_host_template iscsi_sw_tcp_sht;static struct iscsi_transport iscsi_sw_tcp_transport;static unsigned int iscsi_max_lun =512 ; -module_param_named (max_lun, iscsi_max_lun, uint,S_IRUGO ); +module_param_named (max_lun, iscsi_max_lun, uint,S_IRUGO |S_IWUSR );static int iscsi_sw_tcp_dbg; module_param_named(debug_iscsi_tcp, iscsi_sw_tcp_dbg, int,
Signature · 1 line
1.7.1
Quoted 12 lines · Rob Evers
Add root write permission to
iscsi_tcpmax_lunparameterSigned-off-by Rob Evers <[email protected]>---
drivers/scsi/iscsi_tcp.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)drivers/scsi/iscsi_tcp.c +0
-0
drivers/scsi/iscsi_tcp.c static struct scsi_host_template iscsi_sw_tcp_sht; · line 59
Quoted 5 lines
drivers/scsi/iscsi_tcp.c +1
-1@@ -56,7 +56,7 @@ static struct scsi_host_template iscsi_sw_tcp_sht;static struct iscsi_transport iscsi_sw_tcp_transport;static unsigned int iscsi_max_lun =512 ; -module_param_named (max_lun, iscsi_max_lun, uint,S_IRUGO ); +module_param_named (max_lun, iscsi_max_lun, uint,S_IRUGO |S_IWUSR );
Looks ok.
James Bottomley
maintainerQuoted 24 lines · Michael Christie
Quoted 12 lines · Rob Evers
Add root write permission to
iscsi_tcpmax_lunparameterSigned-off-by Rob Evers <[email protected]>---
drivers/scsi/iscsi_tcp.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)drivers/scsi/iscsi_tcp.c +0
-0drivers/scsi/iscsi_tcp.c static struct scsi_host_template iscsi_sw_tcp_sht; · line 59
Quoted 5 lines
drivers/scsi/iscsi_tcp.c +1
-1@@ -56,7 +56,7 @@ static struct scsi_host_template iscsi_sw_tcp_sht;static struct iscsi_transport iscsi_sw_tcp_transport;static unsigned int iscsi_max_lun =512 ; -module_param_named (max_lun, iscsi_max_lun, uint,S_IRUGO ); +module_param_named (max_lun, iscsi_max_lun, uint,S_IRUGO |S_IWUSR );Looks ok.
Quoted 1 line
Reviewed-by Mike Christie <[email protected]>
Is there a reason not to raise the limit globally within iSCSI? i.e. do what everyone else does (usually 0xFFFF for a single level lun hierarchy or ~0 for don't care), rather than have to have them twiddle a hard to find constant, since that seems to be the intent of the patch.
James
Quoted 25 lines · James Bottomley
Quoted 24 lines · Michael Christie
Quoted 12 lines · Rob Evers
Add root write permission to
iscsi_tcpmax_lunparameterSigned-off-by Rob Evers <[email protected]>---
drivers/scsi/iscsi_tcp.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)drivers/scsi/iscsi_tcp.c +0
-0drivers/scsi/iscsi_tcp.c static struct scsi_host_template iscsi_sw_tcp_sht; · line 59
Quoted 5 lines
drivers/scsi/iscsi_tcp.c +1
-1@@ -56,7 +56,7 @@ static struct scsi_host_template iscsi_sw_tcp_sht;static struct iscsi_transport iscsi_sw_tcp_transport;static unsigned int iscsi_max_lun =512 ; -module_param_named (max_lun, iscsi_max_lun, uint,S_IRUGO ); +module_param_named (max_lun, iscsi_max_lun, uint,S_IRUGO |S_IWUSR );Looks ok.
Quoted 3 lines
Quoted 1 line
Reviewed-by Mike Christie <[email protected]>Is there a reason not to raise the limit globally within iSCSI? i.e. do
No reason that I know of now.
Quoted 4 lines
what everyone else does (usually
0xFFFFfor a single level lun hierarchy or ~0 for don't care), rather than have to have them twiddle a hard to find constant, since that seems to be the intent of the patch.
Either is fine. Rob, do you want to do ~0 in your patch, because we do not care. There is not a iscsi driver level side limitation.
Quoted 27 lines · Mike Christie
Quoted 24 lines · James Bottomley
Quoted 23 lines · Michael Christie
Quoted 12 lines · Rob Evers
Add root write permission to
iscsi_tcpmax_lunparameterSigned-off-by Rob Evers<[email protected]>---
drivers/scsi/iscsi_tcp.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)drivers/scsi/iscsi_tcp.c +0
-0drivers/scsi/iscsi_tcp.c static struct scsi_host_template iscsi_sw_tcp_sht; · line 59
Quoted 5 lines
drivers/scsi/iscsi_tcp.c +1
-1@@ -56,7 +56,7 @@ static struct scsi_host_template iscsi_sw_tcp_sht;static struct iscsi_transport iscsi_sw_tcp_transport;static unsigned int iscsi_max_lun =512 ; -module_param_named (max_lun, iscsi_max_lun, uint,S_IRUGO ); +module_param_named (max_lun, iscsi_max_lun, uint,S_IRUGO |S_IWUSR );Looks ok.
Quoted 2 lines
Quoted 1 line
Reviewed-by Mike Christie<[email protected]>Is there a reason not to raise the limit globally within iSCSI? i.e. do
Quoted 8 lines
No reason that I know of now.
Quoted 4 lines
what everyone else does (usually
0xFFFFfor a single level lun hierarchy or ~0 for don't care), rather than have to have them twiddle a hard to find constant, since that seems to be the intent of the patch.Either is fine. Rob, do you want to do ~0 in your patch, because we do not care. There is not a iscsi driver level side limitation.
ok. I'll post another patch using ~0