Skip to content

Commit 6ca91e0

Browse files
author
Tim Woodall
committed
More updates to examples and manpage update
1 parent adc14dd commit 6ca91e0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

conf/examples/targets.conf.vtl.L700

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ default-driver iscsi
8888
params element_type=3,start_address=10,quantity=20,media_home=/root/tapes
8989
# Type 4: Add Data Transfer devices (drives)
9090
params element_type=4,start_address=500,quantity=3,media_home=/root/tapes
91-
params element_type=4,address=500,tid=1,lun=1
92-
params element_type=4,address=501,tid=1,lun=2
93-
params element_type=4,address=502,tid=1,lun=3
91+
params element_type=4,address=500,tid=${tid},lun=1
92+
params element_type=4,address=501,tid=${tid},lun=2
93+
params element_type=4,address=502,tid=${tid},lun=3
9494

9595
</backing-store>
9696
</target>

doc/targets.conf.5.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,11 @@
380380
<para>
381381
Pass additional parameters to tgtadm.
382382
</para>
383+
<para>
384+
Note that '${tid}' and '${lun}' can be used verbatim to refer to the
385+
tid and lun that are being configured. See targets.conf.vtl.L700 for
386+
an example.
387+
</para>
383388
</listitem>
384389
</varlistentry>
385390

0 commit comments

Comments
 (0)