Sorry, i should have given a better description. I am using the normal (internal) hfs_* routines to open the file. However, it's the locking routines (which are system-provided routines which work on the vnode) which I'm having trouble with. Eg. I try something like this: GetFileInfo(vcb, kRootDirID, ".filename", &cnattr, &cfork); .. retval = hfs_getnewvnode(hfsmp, NULL, &cndesc, 0, &cnattr, &cfork, &vp); VREF(vp); VOP_UNLOCK(vp, 0, p); .. which I thought would have been a safe enough operation? this is done with the kernel funnel locked. chris On 25/02/2004, at 2:34 AM, Mike Smith wrote: On Feb 24, 2004, at 1:11 AM, Chris Bergmann wrote: I've got my own HFS+ file system, it's a runtime loaded kext, it works. I'm now trying to make some modifications. I You're a filesystem; use your internal routines to manipulate these files. You don't need (or want) to use the system interfaces - that'd be a major layering violation. = Mike _______________________________________________ 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)
-
Chris Bergmann