Subject: dictating buffersizes passed in vop_strategy
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Reinoud Zandijk <reinoud@netbsd.org>
List: tech-kern
Date: 09/02/2005 16:14:46
--Kj7319i9nmIyA2yE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Dear folks,

is there a posibility for a filingsystem to dictate the buffer sizes passed 
to the vop_strategy() vfs op or a minimum size by adjusting parameters in 
the vop_read/vop_write interface to UBC? A small scout on msdosfs shows 
various buffer sizes ranging from say 8kb to 64kb are passed though allways 
a power of 2.

For UDF the most common sector size is 2kb so all buffers seen passed are 
multiples of 2kb since all powers of 2 are thus also devidable so problems 
are less likely to occure in real-life though i wonder if a buffer of say 
512 bytes can be passed wich would force a RMW cycle.

Thoughts/ideas/code pointers?

Cheers,
Reinoud

--Kj7319i9nmIyA2yE
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQxheToKcNwBDyKpoAQLkyQf7BN8Vxm+5iQsvNpSfFYs32ryvz8yG3z4s
8Q9TpZfhvTP/7j6dqurD3YhNt4fzYML2skTk8WUDcqHLRkKDtEjgbEwVtA7f71pe
zsBeHF4FjfN1ikdkWNflRWAxNkMPGHzpDQhp09zzavPIbby3BQB1iTbpN0xNkw8d
oV4sb+daeEwudPOrTMOzXbcv18eySTS7B6NJu/qMAQF2Rhvm2sICD3fXG71kkEv+
G1A3L1ntu3iJ9wIW+asXS+/M52dfWbxrgzamn3XlwphUp2RpAQ8Uy7U0wRi1vGti
fjZ8ml9Gzq0lvPgUYzcxsr424m0fUt5K5pjeBtN22ZBQzwfDVHucWA==
=Cjys
-----END PGP SIGNATURE-----

--Kj7319i9nmIyA2yE--