[Stgt-devel] vtl patch.

Mark Harvey markh794
Thu Apr 5 01:56:10 CEST 2007


Apologies for this being an attachment. It is rather large to include
inline (57k).

Follow up to feedback from earlier postings, I have implemented the following:


This patch includes the following changes.

- Patch to tgtadm so multiple '--name, --value' arguments can be passed.
- Add device_shutdown() & device_config() to device_type_template
- Unprocessed '--name, --value' arguments are passed to
device_config() in each device template to process.
- smc & ssc 'modules' (INQUIRY cmd implemented - more to come)

- Updated documentation in doc/README.vtl

NOTE: Many of the features in the doc/README.vtl are not implemented
and are included for comment. Better syntax ideas welcome.

Output from "tgtadm --lld iscsi --mode target --op show"
Target 1: iqn.2007-03:marks-vtl_smc:laptop
    System information:
        Type: changer
        Driver: iscsi
        Status: running
    I_T nexus information:
    LUN information:
        LUN: 0
            SCSI ID: deadbeaf1:0
            SCSI SN: XYZZY
            Size: 0
            Backing store: /dev/null
    Account information:
    ACL information:
        ALL
Target 2: iqn.2007-03:marks-vtl_ssc:laptop
    System information:
        Type: tape
        Driver: iscsi
        Status: running
    I_T nexus information:
    LUN information:
        LUN: 0
            SCSI ID: deadbeaf2:0
            SCSI SN: XYZZY10
            Size: 0
            Backing store: /dev/null
        LUN: 1
            SCSI ID: deadbeaf2:1
            SCSI SN: XYZZY11
            Size: 0
            Backing store: /dev/null
        LUN: 2
            SCSI ID: deadbeaf2:2
            SCSI SN: XYZZY12
            Size: 0
            Backing store: /dev/null
    Account information:
    ACL information:
        ALL

And "# lsscsi -g"
[0:0:0:0]    tape    QUANTUM  SDLT600          0010  /dev/st0  /dev/sg0
[0:0:0:1]    tape    IBM      ULT3580-TD3      0010  /dev/st1  /dev/sg1
[0:0:0:2]    tape    SONY     SDX-900V         0010  /dev/st2  /dev/sg2
[1:0:0:0]    mediumx IET      VIRTUAL-CHANGER  0     -         /dev/sg3

Cheers
Mark Harvey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtl-2007-4-5.diff
Type: text/x-patch
Size: 58213 bytes
Desc: not available
Url : https://lists.berlios.de/pipermail/stgt-devel/attachments/20070405/d13cfb5c/attachment-0001.bin 



More information about the stgt mailing list