short-write · shipping · also partial write

Short write

A short write is a successful write operation that reports transferring a positive number of bytes smaller than the requested count.

Related Observatory article: Short write on hesela.com

The returned count identifies the completed prefix, not a durable application record. A later call for the remainder can fail. [1] For a privately owned replacement file, account for the accepted bytes before publishing it; synchronization cannot supply bytes never submitted. For a shared append log, retrying the remainder alone avoids duplicating that prefix but does not prevent another writer from intervening between calls. These are protocol implications, not measured failure rates.

Relations

related
pwrite, o-append, o-dsync, fsync, torn-write, writeback-error, writev

Limitations

Citations

  1. Linux man-pages 6.19: write(2), partial writes and errors (accessed 2026-10-17)

Further reading

  1. Hesela: Atomic rename is not a durable commit (accessed 2026-10-17)

JSON: /data/terms/short-write.json