cli/dd: Write an O_APPEND stdout in order #130

Open
koolkhel wants to merge 1 commits from koolkhel/vitastor:dd-stdout-position into master

1 Commits

Author SHA1 Message Date
1768fdc5f7 cli/dd: Write an O_APPEND stdout in order
With no of=, dd has treated a regular-file stdout as seekable since
0f98db3a and writes it with positional writes. On a shell's >> the
kernel appends every positional write, so with iodepth > 1 (4 by
default) the blocks landed in their completion order: the file got the
right size and scrambled content, and dd exited with 0.

Treat an O_APPEND stdout like oflag=append.
2026-11-21 10:09:04 +03:00