补充 Flag 参数.

Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
rick.chan 2020-12-22 11:02:29 +08:00
parent 51313692ca
commit 2d84e23265
1 changed files with 16 additions and 11 deletions

View File

@ -19,14 +19,19 @@ dd iflag=direct,nonblock if=\<in file name\> oflag=direct,nonblock of=/dev/\<out
多个 Flag 之间可以用逗号分割,含义如下表。 多个 Flag 之间可以用逗号分割,含义如下表。
| flags | Description | | Flag | Description |
|-----------|----------------------------------------------| |-------------|-------------------------------------------------------------------|
| direct | 读写数据采用直接 IO 方式 | | append | append mode (makes sense only for output; conv=notrunc suggested) |
| directory | 读写失败除非是 directory | | direct | use direct I/O for data |
| dsync | 读写数据采用同步 IO | | directory | fail unless a directory |
| sync | 同上,但是针对元数据 | | dsync | use synchronized I/O for data |
| fullblock | accumulate full blocks of input | | sync | likewise, but also for metadata |
| nonblock | 读写数据采用非阻塞 IO 方式 | | fullblock | accumulate full blocks of input (iflag only) |
| noatime | 读写数据不更新访问时间 | | nonblock | use non-blocking I/O |
| noatime | do not update access time |
| nocache | Request to drop cache. See also oflag=sync |
| noctty | do not assign controlling terminal from file | | noctty | do not assign controlling terminal from file |
| nofollow | do not follow symlinks | | nofollow | do not follow symlinks |
| count_bytes | treat 'count=N' as a byte count (iflag only) |
| skip_bytes | treat 'skip=N' as a byte count (iflag only) |
| seek_bytes | treat 'seek=N' as a byte count (oflag only) |