JLS2009: A Btrfs update
JLS2009: A Btrfs update
Posted Nov 2, 2009 0:22 UTC (Mon) by nix (subscriber, #2304)In reply to: JLS2009: A Btrfs update by anton
Parent article: JLS2009: A Btrfs update
almost every keystroke plus a filesystem that preserves *some* consistent
state, but not necessarily the most recent one.
In that case, I agree: editors should not fsync() their autosave state if
they're preserving it every keystroke or so (and the filesystem should not
destroy the contents of the autosave file: thankfully neither ext3 nor
ext4 do so, now that they recognize rename() as implying a
block-allocation ordering barrier). But I certainly don't agree that
editors shouldn't fsync() files *when you explicitly asked it to save
them*! No, I don't think it's acceptable to lose work, even a few seconds'
work, after I tell an editor 'save now dammit'. That's what 'save'
*means*.
And that's why Ted's gone to some lengths to make fsync() fast in ext4:
because he wants people to actually *use* it.
