diff options
Diffstat (limited to 'doc/sg_dd.8')
-rw-r--r-- | doc/sg_dd.8 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/sg_dd.8 b/doc/sg_dd.8 index 90d707bc..b2d45874 100644 --- a/doc/sg_dd.8 +++ b/doc/sg_dd.8 @@ -242,6 +242,10 @@ traditional dd conversions (e.g. ASCII to EBCDIC). Recently added conversions overlap somewhat with the flags so some conversions are now supported by sg_dd. .TP +nocreat +this conversion has the same effect as "oflag=nocreat", namely: \fIOFILE\fR +must exist, it will not be created. +.TP noerror this conversion is very close to "iflag=coe" and is treated as such. See the "coe" flag. Note that an error on \fIOFILE\fR will stop the copy. @@ -352,6 +356,16 @@ nocache use posix_fadvise() to advise corresponding file there is no need to fill the file buffer with recently read or written blocks. .TP +nocreat +this flag is only active in \fIoflag=FLAGS\fR. If present then \fIOFILE\fR +will be opened if it exists. If \fIOFILE\fR doesn't exist then an error +is generated. Without this flag a regular (empty) file named \fIOFILE\fR +will be created (and then filled). For production quality scripts where +\fIOFILE\fR is a device node (e.g. '/dev/sdc') this flag is recommended. +It guards against the remote possibility of 'dev/sdc' disappearing +temporarily (e.g. a USB memory key removed) resulting in a large regular +file called '/dev/sdc' being created. +.TP null has no affect, just a placeholder. .TP |