Linux 6.13 To Expand Atomic Write Support To EXT4 & XFS
([Linux Storage] 19 Minutes Ago
VFS Untorn Writes)
- Reference: 0001506025
- News link: https://www.phoronix.com/news/Linux-6.13-VFS-Untorn-Writes
- Source link:
Prominent Linux developer Christian Brauner with Microsoft has begun sending out various pull requests of VFS feature changes for [1]the imminent Linux 6.13 merge window . One of the interesting early pull requests is the VFS untorn writes series with getting atomic writes support enabled for the EXT4 and XFS file-system.
Back in Linux 6.11 there was [2]atomic writes support for block devices with NVMe and SCSI support enabled. With Linux 6.13 the atomic write support is being extended to the file-systems with EXT4 and XFS initially benefiting.
Christian Brauner explained in the [3]VFS untorn writes pull request :
"An atomic write is a write issed with torn-write protection. This means for a power failure or any hardware failure all or none of the data from the write will be stored, never a mix of old and new data.
This work is already supported for block devices. If a block device is opened with O_DIRECT and the block device supports atomic write, then FMODE_CAN_ATOMIC_WRITE is added to the file of the opened block device.
This pull request contains the work to expand atomic write support to filesystems, specifically ext4 and XFS. Currently, only support for writing exactly one filesystem block atomically is added.
Since it's now possible to have filesystem block size > page size for XFS, it's possible to write 4K+ blocks atomically on x86."
The Linux 6.13 features keep piling on for what should be an interesting next two weeks of the v6.13 merge window.
[1] https://www.phoronix.com/news/Linux-6.13-Features-Early
[2] https://www.phoronix.com/news/Linux-6.11-Block-Atomic-Writes
[3] https://lore.kernel.org/lkml/20241115-vfs-untorn-writes-7229611aeacc@brauner/
Back in Linux 6.11 there was [2]atomic writes support for block devices with NVMe and SCSI support enabled. With Linux 6.13 the atomic write support is being extended to the file-systems with EXT4 and XFS initially benefiting.
Christian Brauner explained in the [3]VFS untorn writes pull request :
"An atomic write is a write issed with torn-write protection. This means for a power failure or any hardware failure all or none of the data from the write will be stored, never a mix of old and new data.
This work is already supported for block devices. If a block device is opened with O_DIRECT and the block device supports atomic write, then FMODE_CAN_ATOMIC_WRITE is added to the file of the opened block device.
This pull request contains the work to expand atomic write support to filesystems, specifically ext4 and XFS. Currently, only support for writing exactly one filesystem block atomically is added.
Since it's now possible to have filesystem block size > page size for XFS, it's possible to write 4K+ blocks atomically on x86."
The Linux 6.13 features keep piling on for what should be an interesting next two weeks of the v6.13 merge window.
[1] https://www.phoronix.com/news/Linux-6.13-Features-Early
[2] https://www.phoronix.com/news/Linux-6.11-Block-Atomic-Writes
[3] https://lore.kernel.org/lkml/20241115-vfs-untorn-writes-7229611aeacc@brauner/
phoronix