Re: Problems with my foreign file system
Re: Problems with my foreign file system
- Subject: Re: Problems with my foreign file system
- From: Steven Bytnar <email@hidden>
- Date: Tue, 15 Jul 2003 09:50:42 -0500
- Mail-followup-to: email@hidden, Darwin-Kernel <email@hidden>
On Mon, Jul 14, 2003 at 06:58:07PM -0700, email@hidden wrote:
>
What I don't understand is why Finder hasn't stripped the '/dev/'
>
prefix off of the identifier. How does Finder determine what the disk
>
identifier for a volume should be?
The Finder isn't supposed to strip /dev/ away, is it? However you're
returning the BSD name from the file system, you're probably not
supposed to be prepending the "/dev/" in the first place. (Just a
guess based on what PBHGetVolParmsSync is supposed to return.)
>
The other problem I'm having also has to do with Finder - the icon
>
which is shown for my volume is the same as the one shown for network
>
volumes. How does Finder determine what icon it should show for a
>
volume?
When I want to lookup volumes by BSD Name with Carbon on X, I use these
two functions:
FSGetVolumeInfo (to walk the volume list.)
PBHGetVolParmsSync (to get the GetVolParmsInfoBuffer.vmDeviceID)
vmDeviceID must be the name of the raw device node itself as it
appears as the "BSD Name" property of a IOMedia node. It must
not contain "/dev/".
It doesn't look like the Finder uses PBHGetVolParmsSync, so I'm not
sure how it's doing that, but I think that if you return the
correct values so that they show up properly from Carbon, your
problem might go away.
--Steve
_______________________________________________
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.