On Dec 5, 5:22 am, Hamish <[EMAIL PROTECTED]> wrote:
> I'm trying to ascertain whether the problem I'm seeing is a bug in
> Apple frameworks or in MacFUSE.
There's always the possibility of bugs in one's own code.
I briefly looked at your helloworldicns.c. The errors you are
returning from your *xattr functions are wrong. You should carefully
read the man pages, especially the error sections, of getxattr(2) and
listxattr(2). Not returning the right errors from a file system can
confuse applications greatly.
...
static int
hello_listxattr(const char *path, char *list, size_t size)
{
if (resource_fork_content == 0)
return -ENOENT; /* Should return 0. */
if (strcmp(path, file_path) != 0)
return -ENOENT; /* Should return 0. */
...
static int
hello_getxattr(const char *path, const char *name, char *value, size_t
size)
{
if (resource_fork_content == 0)
return -ENOENT; /* Should return -ENOATTR */
if (strcmp(path, file_path) != 0)
return -ENOENT; /* Should return -ENOATTR */
...
else return 0; /* Should return -ENOATTR */
}
Amit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"macfuse-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/macfuse-devel?hl=en
-~----------~----~----~----~------~----~------~--~---