diff options
Diffstat (limited to 'doc/sg_write_same.8')
-rw-r--r-- | doc/sg_write_same.8 | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/doc/sg_write_same.8 b/doc/sg_write_same.8 index 55e739d9..55dcfec9 100644 --- a/doc/sg_write_same.8 +++ b/doc/sg_write_same.8 @@ -1,13 +1,14 @@ -.TH SG_WRITE_SAME "8" "November 2017" "sg3_utils\-1.43" SG3_UTILS +.TH SG_WRITE_SAME "8" "December 2019" "sg3_utils\-1.45" SG3_UTILS .SH NAME sg_write_same \- send SCSI WRITE SAME command .SH SYNOPSIS .B sg_write_same [\fI\-\-10\fR] [\fI\-\-16\fR] [\fI\-\-32\fR] [\fI\-\-anchor\fR] -[\fI\-\-grpnum=GN\fR] [\fI\-\-help\fR] [\fI\-\-in=IF\fR] [\fI\-\-lba=LBA\fR] -[\fI\-\-lbdata\fR] [\fI\-\-num=NUM\fR] [\fI\-\-ndob\fR] [\fI\-\-pbdata\fR] -[\fI\-\-timeout=TO\fR] [\fI\-\-unmap\fR] [\fI\-\-verbose\fR] -[\fI\-\-version\fR] [\fI\-\-wrprotect=WPR\fR] [\fI\-\-xferlen=LEN\fR] +[\fI\-\-ff\fR] [\fI\-\-grpnum=GN\fR] [\fI\-\-help\fR] [\fI\-\-in=IF\fR] +[\fI\-\-lba=LBA\fR] [\fI\-\-lbdata\fR] [\fI\-\-num=NUM\fR] +[\fI\-\-ndob\fR] [\fI\-\-pbdata\fR] [\fI\-\-timeout=TO\fR] +[\fI\-\-unmap\fR] [\fI\-\-verbose\fR] [\fI\-\-version\fR] +[\fI\-\-wrprotect=WPR\fR] [\fI\-\-xferlen=LEN\fR] \fIDEVICE\fR .SH DESCRIPTION .\" Add any additional description here @@ -86,6 +87,10 @@ send a SCSI WRITE SAME (32) command to \fIDEVICE\fR. sets the ANCHOR bit in the cdb. Introduced in SBC\-3 revision 22. That draft requires the \fI\-\-unmap\fR option to also be specified. .TP +\fB\-f\fR, \fB\-\-ff\fR +the data\-out buffer sent with this command is initialized with 0xff bytes +when this option is given. +.TP \fB\-g\fR, \fB\-\-grpnum\fR=\fIGN\fR sets the 'Group number' field to \fIGN\fR. Defaults to a value of zero. \fIGN\fR should be a value between 0 and 63. @@ -97,11 +102,12 @@ output the usage message then exit. read data (binary) from file named \fIIF\fR and use it as the data\-out buffer for the SCSI WRITE SAME command. The length of the data\-out buffer is \fI\-\-xferlen=LEN\fR or, if that is not given, the length of the \fIIF\fR -file. If \fIIF\fR is "\-" then stdin is read. If this option is not given -then 0x00 bytes are used as fill with the length of the data\-out buffer -obtained from \fI\-\-xferlen=LEN\fR or by calling READ CAPACITY(16 or 10). -If the response to READ CAPACITY(16) has the PROT_EN bit set then data\- -out buffer size is modified accordingly with the last 8 bytes set to 0xff. +file. If \fIIF\fR is "\-" then stdin is read. If this option and the +\fI\-\-ff\fR are not given then 0x00 bytes are used as fill with the length +of the data\-out buffer obtained from \fI\-\-xferlen=LEN\fR or by calling +READ CAPACITY(16 or 10). If the response to READ CAPACITY(16) has the +PROT_EN bit set then data\- out buffer size is modified accordingly with +the last 8 bytes set to 0xff. .TP \fB\-l\fR, \fB\-\-lba\fR=\fILBA\fR where \fILBA\fR is the logical block address to start the WRITE SAME command. @@ -316,7 +322,7 @@ Written by Douglas Gilbert. .SH "REPORTING BUGS" Report bugs to <dgilbert at interlog dot com>. .SH COPYRIGHT -Copyright \(co 2009\-2017 Douglas Gilbert +Copyright \(co 2009\-2019 Douglas Gilbert .br This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |