28.01.2021 18:20, Andrei Borzenkov пишет:
28.01.2021 17:21, Per Jessen пишет:
No, harddisks generally have write cache disabled
Consumer hard disks generally have write cache enabled because it is good for benchmarks (and performance as perceived by users).
[ 1.894064] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
And if HDD actually supports FUA, write cache does not matter much - you lose some data (but you can lose some data due to lot of different reasons) but file system remains consistent, because FUA ensures data is flushed to stable storage when needed.