Subject: Re: wd, disk write cache, sync cache, and softdep.
To: Steven M. Bellovin <>
From: Jason Thorpe <>
List: tech-kern
Date: 12/16/2004 13:57:21
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed

On Dec 16, 2004, at 10:35 AM, Steven M. Bellovin wrote:

> But under what conditions should higher layers set this flag?

Consider the case of a journaling file system.

Writes to the journal itself would be issued with FUA set.

As buffers described by the journal are flushed to disk, the journal 
might decide it's time to advance the journal's "producer" pointer 
(journal replay being the "consumer").  Before it does that, it would 
issue a synchronize-cache command to the disk to ensure that all of 
that data is, in fact, on disk.  Then it would update the producer 

Those are a couple of examples, anyway.

         -- Jason R. Thorpe <>

content-type: application/pgp-signature; x-mac-type=70674453;
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

Version: GnuPG v1.2.3 (Darwin)