Fwd: FSGetVolumeMountInfoSize returns error -36?
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