[Stgt-devel] [Patch 2/2] Add-ability-to-dynamically-set-SCSI-Inquiry-params - Try 4

Mark Harvey markh794
Mon Jun 4 12:09:53 CEST 2007


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>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-ability-to-dynamically-set-SCSI-Inquiry-params.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : https://lists.berlios.de/pipermail/stgt-devel/attachments/20070604/594ad82f/attachment-0001.bin 



More information about the stgt mailing list