Re: VFS plugin questions
Re: VFS plugin questions
- Subject: Re: VFS plugin questions
- From: Brian Bergstrand <email@hidden>
- Date: Mon, 31 Oct 2005 16:42:48 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Oct 31, 2005, at 3:32 PM, Ron Aldrich wrote:
Folks,
I've gotten a fair portion of my VFS plugin working under 10.4, but
there are a couple of areas where I haven't been able to find much
information.
1) It has been mentioned on these lists that a VFS plugin can
"request to be run under a funnel" - how is that done?
Unless you have set VFS_TBLTHREADSAFE in vfe_flags when you call
vfs_fsadd() the kernel assumes that you need the funnel. So, you have
to explicitly tell the kernel that you are thread safe and don't need
the funnel. The default is to use the funnel.
2) The file system I'm implementing doesn't always align its file
data to block boundaries - for most cases I can simply call
buf_strategy from my vnode's strategy routine - what should I be
doing for unaligned data?
Thanks,
When you need to change unaligned data on disk, grab the block
surrounding the unaligned data, make your change and write the whole
block buffer out. Or does your unaligned data cross block boundaries?
Brian Bergstrand
<http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFDZp3uedHYW7bHtqIRAlCCAJwO+zUdlOCyz5ClXO+C5BZWnFQnRgCfYmJY
B1Qzt4sfKVDeB97DHbh4+b8=
=qJd1
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden