Subject: Re: Extension of fsync_range() to permit forcing disk cache flushing
To: Bill Studenmund <wrstuden@netbsd.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 12/16/2004 13:48:25
--Apple-Mail-8-372454217
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 <thorpej@shagadelic.org>


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFBwgKpOpVKkaBm8XkRAtDJAKCpRql+xQyIP+WVLd2p/MFDg2VJ9QCdHFng
+6iijIgZyNqXlqGiUCPpQCE=
=P3t2
-----END PGP SIGNATURE-----

--Apple-Mail-8-372454217--