• 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: FSGetVolumeMountInfoSize returns error -36?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSGetVolumeMountInfoSize returns error -36?


  • Subject: Re: FSGetVolumeMountInfoSize returns error -36?
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Tue, 17 Aug 2010 09:41:19 +0100

On 17 Aug 2010, at 06:48, James Bucanek wrote:

> I'm on a quest to find a way of determining whether two files are on the same physical *device* (i.e. whether they share the same drive, not just whether they're on the same volume--that's easy, I'm doing that already).

Well, I'm not sure what's going on with FSGetVolumeMountInfo, and I don't have enough time to dig into it right now, but IMO it's not on the critical path to solving your high-level problem.  Rather, you should:

1. map each vRefNum to a IORegistry node

2. walk the I/O Registry to see whether the volumes are related in a way that you care about

Step 1 is really easy: just grab the code from the VolumeToBSDNode sample.

<http://developer.apple.com/mac/library/samplecode/VolumeToBSDNode/>

Step 2 is a bit trickier, but most of the problems lie in deciding what you mean by "on the same physical device", something that gets really messy once you start considering disk images, RAIDs, cluster file systems, and so on.  My recommended approach would be to use IORegistryExplorer (in /Developer/Applications/Utilities) to examine the cases you want to cover, and then work a strategy from that.

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: FSGetVolumeMountInfoSize returns error -36?
      • From: James Bucanek <email@hidden>
References: 
 >FSGetVolumeMountInfoSize returns error -36? (From: James Bucanek <email@hidden>)

  • Prev by Date: Fwd: FSGetVolumeMountInfoSize returns error -36?
  • Next by Date: Re: Fwd: FSGetVolumeMountInfoSize returns error -36?
  • Previous by thread: Re: Fwd: FSGetVolumeMountInfoSize returns error -36?
  • Next by thread: Re: FSGetVolumeMountInfoSize returns error -36?
  • Index(es):
    • Date
    • Thread