3 ms·
> Doing atomic writes is extremely fragile if you are just on top of the filesystem. This is not true, at least in Linux. pwritev2(fd, iov, iovcnt, offset,
by gavinray 6mo ago
> Doing atomic writes is extremely fragile if you are just on top of the filesystem.
This is not true, at least in Linux.
pwritev2(fd, iov, iovcnt, offset, RWF_ATOMIC);
The requirements being that the write must be block-aligned and no larger than the underlying FS's guaranteed atomic write size