logoalt Hacker News

seastarertoday at 4:25 PM1 replyview on HN

It's more correct to use O_DSYNC in addition to O_DIRECT. This adds FUA to the disk write if the disk requires it for durability.


Replies

thomas_fatoday at 4:35 PM

Yes, that has also been pointed out in other threads. Yes this could be very important settings, and even some of common Linux file systems actually don't do that every time and we need to disable the disk writecache during boot up to make sure the data truly persistent (as in my previous storage company).

show 1 reply