Does XFS support the sync mount option?
Ewan Chalmers
ewan.chalmers at gmail.com
Thu Feb 12 17:46:48 CST 2009
Thanks for your detailed reply.
> And "sync" only works if you turn drive write caches off or have
> barriers enabled. There are many people out there that have systems
> that are suseptible to fatal filesystem corruption that could be
> triggered by doing this (because critical metadata is lost from
> the volatile write cache on the drive when you power it off).
According to the FAQ, barriers are enabled by default since 2.6.17. I
have 2.9.8, so I guess barriers are enabled. I have checked and dmesg
contains no errors relating to barriers.
Also according the FAQ... "With a single hard disk and barriers turned
on (on=default), the drive write cache is flushed before an after a
barrier is issued. A powerfail "only" loses data in the cache but no
essential ordering is violated, and corruption will not occur."
So it sounds like pulling the plug on the disk should not cause
corruption in this case (sync mount and barriers default enabled). Or
am I just plain wrong?
(BTW, I've done an xfs_repair which reported no errors.)
Thanks,
Ewan
More information about the xfs
mailing list