[stgt] [PATCH] DOCS: Add --bsoflags and sync/direct to the manpage
Ronnie Sahlberg
ronniesahlberg at gmail.com
Tue May 28 06:17:30 CEST 2013
Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
---
doc/tgtadm.8.xml | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/doc/tgtadm.8.xml b/doc/tgtadm.8.xml
index bb72f00..8a2e287 100644
--- a/doc/tgtadm.8.xml
+++ b/doc/tgtadm.8.xml
@@ -24,6 +24,7 @@
<arg choice="opt">-Y --device-type <type></arg>
<arg choice="opt">-l --lun <lun></arg>
<arg choice="opt">-b --backing-store <path></arg>
+ <arg choice="opt">-f --bsoflags {direct|sync}</arg>
<arg choice="opt">-E --bstype <type></arg>
<arg choice="opt">-I --initiator-address <address></arg>
<arg choice="opt">-Q --initiator-name <name></arg>
@@ -567,11 +568,25 @@ tgtadm --lld iscsi --mode target --op show
</para>
</listitem>
</varlistentry>
+ <varlistentry><term><option>--bsoflags={direct|sync}</option></term>
+ <listitem>
+ <para>
+ This argument is used when creating a LUN to specify extra flags
+ to use when opening the backing file.
+ O_DIRECT is specified by "direct" and O_SYNC by "sync".
+ </para>
+ </listitem>
+ </varlistentry>
<screen format="linespecific">
Example:
Make /dev/sg4 available to initiators connecting to TGTD.
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 --bstype=sg --device-type=pt --backing-store=/dev/sg4
+
+Example:
+Open the backing file with O_SYNC.
+
+tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 --bsoflags="sync" --backing-store=/data/100m_image.raw
</screen>
</refsect1>
--
1.7.3.1
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list