Duplicate entries in a file system...
Duplicate entries in a file system...
- Subject: Duplicate entries in a file system...
- From: Marek Kozubal <email@hidden>
- Date: Wed, 9 Jul 2003 13:33:42 -0400 (EDT)
Hi!
I am writing a file system that is designed to look like HFS+ to Mac OS X.
I am having a problem that I just cannot find the cause to. Everything
works fine when using the file system from the posix/command line side of
things. However, from Carbon (ie the Finder, File Buddy, etc), trying to
do various tasks in the Finder causes a second entry for the parent folder
that I'm working with to appear. This then causes the Finder to think
that they are in fact different folders.
An example of this:
Open a folder
Select a file inside of it
Copy the file
Paste the file into the same directory...
What normally happens is that the Finder adds the word "copy" to the file
name and makes a duplicate, however what I am seeing is the following:
After the paste command but before the copy "starts" a second duplicate of
the parent directory appears, and then I get a dialog saying that the item
already exists, and asks me to replace or cancel. This implies that the
Finder no longer believes that the parent directories of the file are the
same and so doesn't add the word copy to the file name. Also using the
"duplicated" entry generally works as expected, w/the "original" one not
working and not having any of its contents updated. (Its possible that the
duplicate and original are backwards, there's no easy way to tell which is
which, but one works and one does not.)
Another thing that is weird is that if I made a new folder or copy a file
to the same level as these directories suddenly everything works fine for
the rest of this mount, but unmounting it and remounting it will usually
return the problem.
I have looked at vfs_vget(), vop_lookup(), and vop_getattrlist() for any
bugs that might return the wrong CNID, or parent CNID, or vnode, but this
is all consistant and always returns what is expected.
So does anyone know what would cause Carbon/Finder to create this
duplicate entry in the Finder window? Like I said, the posix side works
fine so I think its something w/the carbon layer. I have not tested a
Cocoa application to see if it has a simular problem.
Thanks in advance.
---
Marek Kozubal
email@hidden
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.