svn commit: r295800 - head/usr.bin/cap_mkdb

Konstantin Belousov kostikbel at gmail.com
Sat Feb 20 11:49:31 UTC 2016


On Sat, Feb 20, 2016 at 10:37:17AM +0100, Stefan Esser wrote:
> I had assumed that one of the guarantees soft-updates makes is that
> data and meta-data operations are ordered relative to each other.

This is not true, SU never provided such guarantee. SU only ensures
the correctness of the metadata for any moment in time, or innocent
inconsistencies, where operation cannot be made atomic and consistent
simultaneously.

In other words, in this case, SU guarantees that the data blocks which
are allocated for writes, are not used by other inode, as recorded by
the metadata on disk, _if_ blocks are recorded in the on-disk inode. It
makes absolutely no guarantees about the flushing of the data buffers.


More information about the svn-src-head mailing list