Subject: Re: Extension of fsync_range() to permit forcing disk cache flushing
To: Bill Studenmund <>
From: Jason Thorpe <>
List: tech-kern
Date: 12/16/2004 13:48:25
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed

On Dec 16, 2004, at 12:16 PM, Bill Studenmund wrote:

> The current implementation just flushes the whole disk cache. Future
> implementations may be selective and issue finer-grained cache flushes.
> Thoughts?

Looks fine, except that the DIOCCACHESYNC ioctl is being invoked 
incorrectly.  The argument is actually an "int", not a "long".  
Non-zero tells the driver to issue the command even if it does not 
consider any blocks to be dirty (the sd driver keeps track of this so 
it can know if it needs to issue the command on close, etc.)

         -- 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)