Does UFS2 send BIO_FLUSH to GEOM when update metadata (with
Pawel Jakub Dawidek
pjd at FreeBSD.org
Mon Nov 28 15:04:27 UTC 2011
On Wed, Nov 23, 2011 at 09:44:44PM +0200, Kostik Belousov wrote:
> On Wed, Nov 23, 2011 at 11:00:26PM +0400, Lev Serebryakov wrote:
> > Hello, Freebsd-fs.
> > Does UFS2 with softupdates (without journal) issues BIO_FLUSH to
> > GEOM layer when it need to ensure consistency on on-disk metadata?
> No. Softupdates do not need flushes.
Well, they do for two reasons:
1. To properly handle sync operations (fsync(2), O_SYNC).
2. To maintain consistent on-disk structures.
The second point is there, because BIO_FLUSH is the only way to avoid
reordering (apart from turning off disk write cache).
SU assumes no I/O reordering will happen, which is very weak assumption.
Pawel Jakub Dawidek http://www.wheelsystems.com
FreeBSD committer http://www.FreeBSD.org
Am I Evil? Yes, I Am! http://yomoli.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20111128/6a4cf0b1/attachment.pgp
More information about the freebsd-fs