Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mount Points



At 21:18 +0100 on 8/26/06, Mark Gilbert wrote:
Hi Michael

Thanks for the explanation about the phantom mount directory. Forcing an rm of the directory has solved the problem on this machine

The problem I have is that I am using
file:///Volumes/Drive/Folder/File style URLs to pass pointers to
files over a network connection.  When I use CFURL to resolve a URL
like:
file:///Volumes/G4_HD/folder/file

As you can see, this is an inherently fragile way to do things. Even without the bug discussed above, I can't recommend this as a way to go.

We need to pass around a file specification via TCP/IP between various different applications working on the same file from different computers. The file spec also has to go through an asset management system which needs to store the location as (unicode) text, then pop out the other side and be picked up again.


What better mechanism would you recommend instead to identify a file which resides on a
shared volume in a workgroup ?.

One more note as to the problem your seeing- the precise problem your describing can easily occur in the wild if the user happens to mount two volumes with the same name. The first volume will get the normal volume, the second will have _# (some 1-x for each additional duplicate volume) appended. If robustness under lots of conditions is important to you, relying on the volume path being the same between machines is a bad idea...
--
______________________________________________________
Arguing with an engineer is like wrestling with a pig in mud.
After a while, you realize the pig is enjoying it.
______________________________________________________
Kevin Elliott <mailto:email@hidden>
AIM/iChatAV: email@hidden (video chat available)
______________________________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden


This email sent to email@hidden
References: 
 >Re: Mount Points (From: Michael Smith <email@hidden>)
 >Re: Mount Points (From: Mark Gilbert <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.