Ext4 data corruption in 6.1 stable
lore.kernel.org
lore.kernel.org
Linux is a special category of mess.
When XFS was designed, the storage ecosystem was spinning rust attached using PATA and SCSI. We've developed quite a bit since then, with things like SAS, NVMe, and SSDs. Storage have gotten over an order of magnitude more throughput, over an order of magnitude less latency, and several orders of magnitude more IOPS.
Running a filesystem designed for ancient hardware means you won't be taking advantage of several decades of innovation.
Yes, it is possible to maintain stable APIs and even offer multiple versions of. Other systems (even AmigaOS in the 80s) manage to do so.
Linux is a special case.
If I wanted something actually novel, I would go for ZFS or one of its clones.
There are better ways to do it, and it is being done.
Refer to the microkernel multiserver architecture, with efforts such as Genode (on seL4) or Fuchsia.
Also, how does putting N millions of LoC in N projects solve problems magically?
Unless you are checksumming your files through a daemon run on a schedule (IDS style) AND manually review the results every now and then, you can't know.
Even if they have them, the diffing needs to be done.
Given the past problems with ZFS, I think I'll write a summarizer, that creates a database of metadata for each backup: it will be small to keep around, and may be use more easily to determine which backup contains the uncorrupted file.
iomap: update ki_pos a little later in iomap_dio_complete
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux...
As the potentially problematic patch causing the corruption, I found https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux... but it's not present in the 6.2.2 I run.
I'm very conservative in the versions or critical components like kernels or dkms modules, that didn't protect me against the ZFS bug, but it seems to have avoided me this EXT4 bug!