4 ms·
Are disk sector writes atomic?
- karmakaze 6y agoInteresting discussion. My short takeaway is that we should all be using journalling filesystems and the implementation should ensure that writing the 'journal entry is valid' cannot physically happen before anything it references, even in the case of power failure. The longer answer is that this is hard to guarantee in software as hardware gets more sophisticated and tends to lie for optimistic performance.
- Koshkin 6y agoOff-topic, but calling a physical record on a disk a "sector" has always rubbed me the wrong way: it's like calling a point in space a "Z" just because it is usually the name of the last Cartesian coordinate. (The three coordinates of a physical record on a spinning disk are the cylinder, the track, and the sector.)