Re: Finder Get Info not allowing permission change with CXFS
Re: Finder Get Info not allowing permission change with CXFS
- Subject: Re: Finder Get Info not allowing permission change with CXFS
- From: Quinn <email@hidden>
- Date: Tue, 13 Jul 2004 12:18:01 +0100
At 16:57 +1000 13/7/04, Nick Blievers wrote:
Hmmm, I tried setting the vnode and getattrlist to return VT_HFS
rather than VT_OTHER... but finder still reported 'Unknown'. What
does 'Format' get set from?
It's quite complex but the basic idea is that Finder call
FSGetVolumeInfo and tests the filesystemID field of the returned
FSVolumeInfo structure to determine whether the detailed privileges
should be shown. FSGetVolumeInfo is implemented by the Core Services
File Manager. It derives the filesystemID in two different ways,
depending on whether the volume is volfs-based or Posix-based, but
the basic algorithm is the same: it uses a bunch of special cases
based on the value returned in the f_fstypename field of the statfs
structure returned by statfs
Clearly this is unsatisfactory. I don't think that you'll be able to
work around this in your file system without claiming that you're
HFS, which is not a good idea.
Thanks for the Radar number. I've commented the bug appropriately.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.