[Stgt-devel] [Patch 0/2] Re-format / resubmit patch - try 4

Mark Harvey markh794
Mon Jun 4 11:51:55 CEST 2007


> [PATCH 1/2] Add new module entry points for configuration
> 
> Add new module entry points.
>   <module>_lu_init(struct scsi_lu *lu) - called at setup time.
>   <module>_lu_exit(struct scsi_lu *lu) - called at shutdown time.
>   <module>_lu_config(struct scsi_lu *lu) - Any module unique configuration.
> 
> Moved logical unit configuration from target -> <module>
>   Along with above entry point <module>_lu_config(), will allow module
>   specific configuration.
>   No new functionality added yet.
> 
> Add a dump_cdb(struct scsi_cmd *cmd) - Called from spc_illegal_op()
> 
> Update - All modules use common INQUIRY routine.



> [PATCH] Add ability to dynamically set SCSI Inquiry params
> 
> Added support to configure:
>   Vendor Identification
>   Product Identification
>   Product Revision
>   Format of returned 'sense data'
>   Define if the lu is capable of supporting removable media
>   Define/set if the lu is online / offline.
> 
> All params are passed using the 'tgtadm' utility:
> 
>   VendorIdent="string"
>   ProductIdent="string"
>   ProductRev="string"
>   Removable=<0|1> - 0 == non-removable, 1 == removable media
>   SenseFormat=<0|1> - 0 == Clasic sense format, 1 == Support descriptor format
>   Online=<0|1> - 0 == Unit offline, 1 == Unit Online
> 
> e.g.
> tgtadm --lld iscsi --mode logicalunit --op update --tid <TID> --lun <LUN> \
>         --params VendorIdent=QUANTUM,ProductIdent=HD100,ProductRev=0010
> tgtadm --lld iscsi --mode logicalunit --op update --tid <TID> --lun <LUN> \
>         --params Removable=1,SenseFormat=1,Online=1
> 
> Example script (scripts/tgt-core-test) to set up HDD & CD device.
> 
> Signed-off-by: Mark Harvey <markh794 at gmail.com>



More information about the stgt mailing list