Re: Problems with my foreign file system
On Tuesday, July 15, 2003, at 07:50 AM, Steven Bytnar wrote:
From: Steven Bytnar <sbytnar@kagi.com>
Date: Tue Jul 15, 2003 7:50:42 AM US/Pacific
To: raldrich@mac.com
Cc: Darwin-Kernel <darwin-kernel@lists.apple.com>
Subject: Re: Problems with my foreign file system
On Mon, Jul 14, 2003 at 06:58:07PM -0700, raldrich@mac.com wrote:
What I don't understand is why Finder hasn't stripped the '/dev/'
prefix off of the identifier. How does Finder determine what the disk
identifier for a volume should be?
The Finder isn't supposed to strip /dev/ away, is it? However you're
returning the BSD name from the file system, you're probably not
supposed to be prepending the "/dev/" in the first place. (Just a
guess based on what PBHGetVolParmsSync is supposed to return.)
I've checked against other (running) file systems to see if the /dev/ prefix is supposed to be returned, and yes, it is. The name of the device node is stored in volume's mount structure, in the form /dev/disk*s* (mount_ptr->mnt_stat.f_mntfromname). There are two FileSystem APIs which access that string - statfs and getattrlist. They both copy the entire string, without modifying it an any way. 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? Thanks, Ron Aldrich Software Architects, Inc. _______________________________________________ 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