Re: VFS KPI: Are knotes auto-generated?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Feb 13, 2006, at 11:15 AM, Jim Magee wrote: --Jim On Feb 11, 2006, at 2:01 PM, Brian Bergstrand wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Brian Bergstrand <http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) Brian Bergstrand <http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFD8RmbedHYW7bHtqIRAsOYAJ9OgCaCFmQu43kV1d2CsVLAGFHcZwCcCu6v G1m05TFfD6CXFBNfyHjgkUU= =YTm9 -----END PGP SIGNATURE----- _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... There is nothing in Tiger/Darwin 8 to generate kevents at the VFS layer. But that is being worked on for a future release. When it arrives, network filesystems will have locally-driven changes auto- reflected into the kevent/knote system. They will also have a way to be informed when someone is watching a file locally so they can subscribe to whatever remote event system their protocol might support and then reflect remote changes into the kevent system as well. Thanks Jim, that's all good news. But for the present there is no way for a third-party VFS plugin to provide knotes while remaining KPI compliant (not linking against the kernel proper)? So moving my file system plugin from 10.3 to 10.4 has now lost me knote and advisory locking support (vfs_setlocklocal() is private and my old locking code was associating context with a proc struct). Since the knote interface is no longer public, does this mean that knotes are auto-generated by the kernel? This is for a local file system, but I'd be interested the status for network file systems too. I had a quick look at the VFS source and didn't see anything to suggest this is the case, but thought maybe the new kernel event system generated corresponding knotes. Then again, both HFS and UFS still generate their own notes... If knotes are not auto-generated, is there a way for VFS plugins to do so while still remaining KPI compliant? Knotes and byte-range locking (vfs_setlocklocal) seem to be some rather big oversights in the KPI. iD8DBQFD7jSfedHYW7bHtqIRApeLAKDaEbK7lhHQTdDl+4Ym8hkWYA534ACdHeb/ IO8DwLm+URmSbspo1L3kZl0= =dk9Q -----END PGP SIGNATURE----- _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/jmagee% 40apple.com This email sent to jmagee@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Brian Bergstrand