• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Direct networking and phantom volumes (Volume-1)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Direct networking and phantom volumes (Volume-1)


  • Subject: Re: Direct networking and phantom volumes (Volume-1)
  • From: Loren Ryter <email@hidden>
  • Date: Wed, 23 Apr 2008 10:31:34 -0400
  • Thread-topic: Direct networking and phantom volumes (Volume-1)

Thanks for the response, Philip.  Since I'm not seeing this problem it's
hard to test. (I did once, wish I took advantage of the moment ;-)

Is there a way to test which of the volumes with the same prefix is the real
one and adjust accordingly, without requiring a shut down or manual
intervention?  I'm thinking of trying to list the contents of each
"duplicate" volume.  I assume the dead one would return some kind of error,
but what?

Cheers.


On 4/23/08 9:22 AM, "Philip Aker" <email@hidden> wrote:

> On 08-04-23, at 05:52, Loren Ryter wrote:
>
>> This is probably not the best forum for this question. If anyone has
>> a better suggestion of where to ask this please let me know.
>
>> One of my applications uses direct networking to read a file on a
>> remote machine.  It mounts the remote user directory as a local
>> volume, and reads the file:
>
>> /Volumes/RemoteUser/Path/File.txt
>
>> The problem I am seeing is that in some cases, the volume
>> "RemoteUser" appears to be mounted as a phantom volume, so the path
>> obtained is:
>
>> /Volumes/RemoteUser-1/Path/File.txt
>
>> My questions are:
>
>> 1. what causes this and how can it be avoided?  It seems to be more
>> likely to happen on Leopard
>
>> 2. how can this be worked around?
>
>> 3. what to tell users to do if this happens?  If this happened to me
>> I would drop into terminal and RM the phantom volume "alias" file
>> after restarting and making sure the volume was not actually
>> mounted.  I am as you will understand very reluctant to tell users
>> to do this.
>
> This is a known issue (search the archives). Like if you have an Xcode
> project open and yank out the FireWire disk it's on, Xcode will
> recreate a stub folder and directory hierarchy in /Volumesand save the
> project in there. So next time you mount the real volume, that
> numerical appendage will appear because HFS can handle duplicate disk
> names but unix can't.
>
> The usual cause of the problem is of course hard-wired paths. So if
> you have hard-wired name for the volume, then you can use 'list disks'
> and scan the result for multiple items starting with with the same
> prefix, show an alert, and then open the folder for them to deal with
> it:
>
> tell application "Finder" to open POSIX file "/Volumes"
>
> There are other low level ways to lessen the chance this will occur
> (like a shutdown script for starters) but the above solution puts it
> in the hands of the user.  A good choice I think because they might
> have been at least partially responsible for the problemŠ
>
>
> Philip Aker
> echo email@hidden@nl | tr a-z@. p-za-o.@
>
> Sent from my SE/30
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Direct networking and phantom volumes (Volume-1)
      • From: Philip Aker <email@hidden>
References: 
 >Re: Direct networking and phantom volumes (Volume-1) (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Automatic stops in a playlist within iTunes
  • Next by Date: Tiger & Leopard Together
  • Previous by thread: Re: Direct networking and phantom volumes (Volume-1)
  • Next by thread: Re: Direct networking and phantom volumes (Volume-1)
  • Index(es):
    • Date
    • Thread