Re: Problems with my foreign file system
On Tuesday, July 15, 2003, at 08:29 PM, Steven Bytnar wrote: On Tue, Jul 15, 2003 at 06:19:13PM -0700, raldrich@mac.com wrote: Somewhere between statfs and PBHGetVolParmsSync, the /dev/ prefix is stripped from the vMDeviceID parameter - however, it is not stripped when my filesystem is called. I wrote a simple program to test PBHGetVolParmsSync - it simply iterates all of the volumes and dumps the vMDevice parameter for each - this is its output: vMDeviceID = disk0s9 vMDeviceID = disk0s10 vMDeviceID = disk1s9 vMDeviceID = disk1s10 vMDeviceID = /dev/disk2s0 vMDeviceID = afp_1Q2ykU1Q2ykU1Q2ykU1Q2ykU-0.2f000002 I'm guessing (based on the icon problem, and on the vMDeviceID for a network volume, that PBHGetVolParmsSync has decided for some reason that mine is a network volume, and that it therefore shouldn't strip the /dev/ prefix. What I don't know, is what flag is messed up which would cause that. Any ideas? How about printing out the other info in the GetVolParmsInfoBuffer struct? It sounds like you might have answered the question yourself... What happens if you make it so your file system has GetVolParmsInfoBuffer.vMServerAdr == 0? I don't know the nature of your file system, so I can only guess that you're acting like a network file system. You might do some IORegistry (ioreg) spelunking. How does your device's IOMedia entry compare to other hard disk entries? It turns out that the MNT_LOCAL flag in mount_ptr->mnt_flag wasn't set, thus everything thought that it was a network disk. Thanks, Ron _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
raldrich@mac.com