aboutsummaryrefslogtreecommitdiff
path: root/sgp_dd.8
diff options
context:
space:
mode:
Diffstat (limited to 'sgp_dd.8')
-rw-r--r--sgp_dd.811
1 files changed, 9 insertions, 2 deletions
diff --git a/sgp_dd.8 b/sgp_dd.8
index 03343237..7f5b4368 100644
--- a/sgp_dd.8
+++ b/sgp_dd.8
@@ -1,4 +1,4 @@
-.TH SGP_DD "8" "January 2007" "sg3_utils\-1.23" SG3_UTILS
+.TH SGP_DD "8" "April 2007" "sg3_utils\-1.24" SG3_UTILS
.SH NAME
sgp_dd \- copies data to and from files and devices. Specialized for
devices that understand the SCSI command set.
@@ -77,6 +77,7 @@ default is 0 which selects indirect IO. Value of 1 attempts direct
IO which, if not available, falls back to indirect IO and notes this
at completion. If direct IO is selected and /proc/scsi/sg/allow_dio
has the value of 0 then a warning is issued (and indirect IO is performed)
+For finer grain control use 'iflag=dio' or 'oflag=dio'.
.TP
\fBibs\fR=\fIBS\fR
if given must be the same as \fIBS\fR given to 'bs=' option.
@@ -159,6 +160,12 @@ utility is more sophisticated in such error situations when 'iflag=coe'.
When given with 'oflag=', any error reported by a SCSI WRITE command is
reported to stderr and the copy continues (as if nothing went wrong).
.TP
+dio
+request the sg device node associated with this flag does direct IO.
+If direct IO is not available, falls back to indirect IO and notes
+this at completion. If direct IO is selected and /proc/scsi/sg/allow_dio
+has the value of 0 then a warning is issued (and indirect IO is performed).
+.TP
direct
causes the O_DIRECT flag to be added to the open of \fIIFILE\fR and/or
\fIOFILE\fR. This flag requires some memory alignment on IO. Hence user
@@ -193,7 +200,7 @@ Here are some retired options that are still present:
coe=0 | 1
continue on error is 0 (off) by default. When it is 1, it is
equivalent to 'iflag=coe oflag=coe' described in the FLAGS section
-above. Similar to 'conv=noerror' in
+above. Similar to 'conv=noerror,sync' in
.B dd(1)
utility. Default is 0 which implies stop on error. More advanced
coe=1 processing on reads is performed by the sg_dd utility.