• 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: determine volume name for folder that does not exist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: determine volume name for folder that does not exist


  • Subject: Re: determine volume name for folder that does not exist
  • From: Alastair Houghton <email@hidden>
  • Date: Mon, 10 Sep 2007 11:55:42 +0100

On 10 Sep 2007, at 01:42, Rosyna wrote:

Well, paths don't actually have any knowledge of what volume they are on (or if they're on a volume at all). Paths use mount points, which have arbitrary locations (in Mac OS X, this is defaulted to a folder in /Volumes/). However, if a volume is unmounted incorrectly, Mac OS X will append a number to the name of the mount point, thereby making the volume's name completely inconsistent with the path.

You don't need a volume to be unmounted incorrectly to get this behaviour. All you need to do is mount two volumes with the same volume name---volume names aren't unique, at least not on Mac OS X (maybe they were on previous Mac OS versions?)


Incidentally, I don't know exactly how Carbon's aliases refer to volumes; I'd hope that they use the UUID in the HFS+ volume header (or similar UUID fields on other filesystems), but I'm not certain whether they actually do. (Any Carbon experts? Rosyna?)

Anyway, this is a tricky problem and as Rosyna said, aliases are probably the best thing to use.

Kind regards,

Alastair.

--
http://alastairs-place.net

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >determine volume name for folder that does not exist (From: Mitchell Livingston <email@hidden>)
 >Re: determine volume name for folder that does not exist (From: Rosyna <email@hidden>)

  • Prev by Date: Re: Closing a window with a textview using keyboard
  • Next by Date: Re: NSRectArray by reference
  • Previous by thread: Re: determine volume name for folder that does not exist
  • Next by thread: Closing a window with a textview using keyboard
  • Index(es):
    • Date
    • Thread