ext4 and data loss
Posted Mar 13, 2009 23:10 UTC (Fri) by
quotemstr (subscriber, #45331)
In reply to:
ext4 and data loss by bojan
Parent article:
ext4 and data loss
It is the D in ACID. As you mentioned yourself, rename requires only A form ACID - and that is exactly what you get.
That's my
whole point: sometimes you want atomicity
without durability.
rename without
fsync is how you express that. Except on certain recent filesystems, it's
always worked that way. ext4 not putting a write barrier before
rename is a regression.
But the main performance problem is bad applications that gratuitously write hundreds of small files to the file system.
And why, pray tell, is writing
files to a
filesystem a bad thing? Writing plenty of small files is a perfectly legitimate use of the filesystem. If a filesystem buckles in that scenario, it's the fault of the filesystem, not the application. Blaming the application is blaming the victim.
(
Log in to post comments)