Re: Pleasing Spotlight for Open ZFS
Re: Pleasing Spotlight for Open ZFS
- Subject: Re: Pleasing Spotlight for Open ZFS
- From: Jorgen Lundman <email@hidden>
- Date: Tue, 30 Sep 2014 10:09:03 +0900
I have changed to use VOLFS, with PERMANENTIDs. Even though msdos works
without those, it was easier to compare our replies to HFS+'s replies.
In the end, it is the behaviour of vfs_vget() that was stumping us. As it
can be the very first call into the VFS layer for a file, for example
/.vol/16777222/1102011
and it is not followed by a vnop_lookup(). It is very important that
vfs_vget update the vp's name. We use vnode_update_identity() to do so.
This enables Spotlight to start sending replies.
It is interesting to note that HFS+ took the path to always set vnode_name
when they call getnewvnode(), which could also be an option if the name is
easily available.
Cheers,
Lund
--
Jorgen Lundman | <email@hidden>
Unix Administrator | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo | +81 (0)90-5578-8500 (cell)
Japan | +81 (0)3 -3375-1767 (home)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden