Re: Semantics of racy O_DIRECT writes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/9/25 7:01 AM, Travis Downs wrote:
Do we have a guarantee that the unmodified bytes will be successfully
written?

That seems likely to me.

Can this cause some corruption/inconsistency in the FS or block
layer?

As Ted already mentioned, if there is any driver in the storage stack
that requires stable writes (e.g. a RAID 5 driver) or that assumes that
data in flight is not being modified (e.g. a RAID 1 driver), you will be
in trouble. Additionally, since typical storage controllers use DMA to
transfer data, and since DMA may happen out of order, another pattern
than AB00 or ABCD could end up on the storage device, e.g. AB0D.

Bart.





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux