> Doing atomic writes is extremely fragile if you are just on top of the filesystem.
pwritev2(fd, iov, iovcnt, offset, RWF_ATOMIC);