[stgt] [PATCH] DOCS: Add --bsoflags and sync/direct to the manpage

Ronnie Sahlberg ronniesahlberg at gmail.com
Sat Jun 8 17:05:32 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 c17f823..18813dc 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>
@@ -569,11 +570,25 @@ tgtadm --lld iscsi --mode target --op show
+    <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">
 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
+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

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