disabling journal vs data=writeback in ext4 file system
What is the distinction in between disabling journal on ext4 documents system making use of:
tune2fs -O ^has_journal /dev/sda1
and also making use of
data=writeback when placing? I assumed
ext4 - journal = ext2. methods when we remove journal from a ext4 documents system, it is instantly transformed to ext2 (hence we can not gain from various other ext4 attributes)
The 2 remain in no other way matching. Disabling the journal does specifically that: transforms journaling off. Establishing the journal setting to writeback, on the various other hand, switches off particular warranties concerning documents information while ensuring metadata uniformity via journaling.
The information = writeback alternative in
man(8) mount claims:
Data getting is not managed - information might be created right into the major filesystem after its metadata has actually been devoted to the journal. This is rumoured to be the highest possible - throughput alternative. It assures inner filesystem honesty, nonetheless it can permit old information to show up in files after a crash and also journal recuperation.
Establishing information = writeback might make good sense in some conditions when throughput is more vital than documents materials. Journaling just the metadata is a concession that several filesystems make, yet do not disable the journal totally unless you have a great factor.