Re: Disk icon for mounted file system in the Finder
Re: Disk icon for mounted file system in the Finder
- Subject: Re: Disk icon for mounted file system in the Finder
- From: Sam Vaughan <email@hidden>
- Date: Tue, 21 Oct 2003 14:03:48 +1000
Hi Dan,
I've had some fun today trying to add a call to
DiskArbDiskAppearedWithMountpointPing_auto(). I started by adding it
to my file system's util code after it calls the system mount().
Nothing happened and I got a MACH_SEND_INVALID_DEST error. Clearly
something's going wrong in mach_msg() in the MIG layer.
I then set a breakpoint in autodiskmount at
DiskArbDiskAppearedWithMountpointPing_rpc(), and watched it break when
I mounted an NFS volume. Interestingly, the icon appeared on the
desktop before I let the call complete (how can this be?). I couldn't
track down the caller from the server side of the RPC, so I triggered
an NMI and did a showallstacks remotely, but couldn't see any likely
candidates. I can't see any such calls in the NFS mount code. Who's
making the call?
The other interesting thing is that the behaviour I mentioned
previously, i.e. clicking on a mount point makes a disk icon appear on
the Desktop, doesn't trigger the breakpoint. I suppose this fits with
your assertion that Disk Arb has no involvement in this case. It still
seems to me that the real goal is to give the Finder a kick, and I
can't see where Disk Arb would do this for me.
Thanks for your help so far - I reckon we're getting very close!
Sam
On Monday, Oct 20, 2003, at 21:30 Australia/Melbourne, Dan Markarian
wrote:
Hi Sam,
calls I need to make to DiskArb are, do you?
DiskArbDiskAppearedWithMountpointPing_auto();
It's not possible to publish a custom volume icon out of the VFS layer
for the moment, however, you can experiment with putting an icon at
the root of volume itself, ".VolumeIcon.icns", at some point before
telling Disk Arbitration. I have not tried it myself.
Finder noticed a mount point and registered it with DiskArb.
Disk Arbitration has no involvement, actually. It is just Finder.
_______________________________________________
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.