I sent the following mail twice (Feb 25th and 27th) from my gmail address, never got any answer, and it even seems that they didn't get into the list, as they're no in the SF archive.
I found that the getxattr function in python fuse does not respect the
API regarding size=0.
As the manpage says...
"""
An empty buffer of size zero can be passed into these calls to
return the current size of the named extended
attribute, which can be used to estimate the size of a buffer
which is sufficiently large to hold the value associ‐
ated with the extended attribute.
"""
However, it currently only checks if the returned string size is
bigger than the asked-for size (and as this size is sometimes 0), you
just get a broken behaviour (it even generates the incorrect error).
This is the very same problem described in this old post to this same list:
I sent the following mail twice (Feb 25th and 27th) from my gmail address, never got any answer, and it even seems that they didn't get into the list, as they're no in the SF archive.
------------------- 8< ------- ------- ------- ------- ------- ----
Hello!
I found that the getxattr function in python fuse does not respect the
API regarding size=0.
As the manpage says...
"""
An empty buffer of size zero can be passed into these calls to
return the current size of the named extended
attribute, which can be used to estimate the size of a buffer
which is sufficiently large to hold the value associ‐
ated with the extended attribute.
"""
However, it currently only checks if the returned string size is
bigger than the asked-for size (and as this size is sometimes 0), you
just get a broken behaviour (it even generates the incorrect error).
This is the very same problem described in this old post to this same list:
http:// thread. gmane.org/ gmane.comp. file-systems. fuse.devel/ 5816
The news is that I created a patch to address this issue (we tested
this patch at work, and works ok for us).
The patch is here:
http:// launchpadlibrar ian.net/ 22018646/ fuse_getxattr. patch
(it's on a Launchpad bug, #325860)
Regards, ------- ------- ------- ------- ----
------------------- 8< -------
They don't have a bug tracker, so don't know what else I can do, :(.