Comment by rbanffy
4 years ago
> Without that, there are no way to ensure durable writes and you might get data loss or data corruption.
The best the OS can do is to trust the device that the data was, indeed, written to durable storage. Unfortunately, many devices lie about that. If you do a `F_FULLSYNC`, you can say you did your best, but the data is out of your hands now.
You can always reset the device and read back the data to confirm.
Sure, that will be slow, but there is a way!
Not sure. They can still cheat. You'd need to power them down, then back up again. If it's a soft reset, they can just read it from RAM.
True.