Hello list,

Back when we desperately tried to get ZFS to work with Spotlight, we found
that we had to change vfsstatfs->f_fstypename to return "hfs" instead of
"zfs". I just assumed mds did a simple string compare with "hfs" and that
was just how things were.

So recently we tried to lie and say we were "apfs" instead of "hfs", and
found that mds does not want to work in that case either.

That could suggest that ZFS is doing something wrong, as opposed to mds
ignoring ZFS. (So maybe it isn't doing a string compare after all).

Working with mds is a bit of a "black box", it either works or it doesn't.
There are no clues to get as to what could be wrong. (right? No debug
messages or similar?)

I have made the ZFS replies to statfs, getattrlist(ATTR_VOL_CAPABILITIES),
vnop_tables, identical to that of apfs, as well as dtruss'ing mds for
clues, but they still don't like each other.

I know there are no apfs, nor mds, sources. But is it possible to get clues
as to what mds does differently when running on "apfs" compared to "hfs"?
Are we accidentally hooking into a hfs compatibility mode in mds.

(We haven't implemented getattrlist, getattrlistbulk, but the XNU kernel
looks to handle that very nicely, and it /looks like/ that shouldn't be the
issue).


As for not working, it looks a bit like:

# zpool create -f -O com.apple.mimic_hfs=on tank disk0
# touch /Volumes/tank/test.txt
# mdls /world.txt
kMDItemContentCreationDate         = 2014-04-17 03:02:53 +0000
[lots more information dumped here]


# zpool create -f -O com.apple.mimic_hfs=off tank disk0
# touch /Volumes/tank/test.txt
# mdls /world.txt
[empty]


Anything would be appreciated!

Lund

-- 
Jorgen Lundman       | <lund...@lundman.net>
Unix Administrator   | +81 (0)90-5578-8500
Shibuya-ku, Tokyo    | Japan

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (Filesystem-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/filesystem-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to