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

Fwd: FSGetVolumeMountInfoSize returns error -36?


  • Subject: Fwd: FSGetVolumeMountInfoSize returns error -36?
  • From: Chris Suter <email@hidden>
  • Date: Tue, 17 Aug 2010 17:10:44 +1000

Hi James,

On Tue, Aug 17, 2010 at 3:48 PM, James Bucanek <email@hidden> 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).

Clearly I need something more than just the regular volume info. I started my investigation by running ./FSMegaInfo FSGetVolumeMountInfo but immediately ran into a snag: FSGetVolumeMountInfoSize is returning error -36 or every FSVolumeRefNum I give it.

So what's that about?

It's probably ioErr (from MacErrors.h) which is a generic error. Not sure how you were doing it, but I'd just call statfs for the two paths and then make sure the start of the f_mntfromname components are equal e.g. the ā€œ/dev/disk??ā€ bit (up to the first ā€˜s’). This won't work if one of the volumes is part of a RAID scheme (or an encrypted volume or disk image for that matter). It would be a little awkward in that case because obviously a RAID scheme could span many physical disks.

Kind regards,

Chris


 _______________________________________________
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: Fwd: FSGetVolumeMountInfoSize returns error -36?
      • From: James Bucanek <email@hidden>
References: 
 >FSGetVolumeMountInfoSize returns error -36? (From: James Bucanek <email@hidden>)

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