Commit 31d77d6c by rfkelly0

fs.expose.fuse: correctly report UnsupportedError for getxattr/listxattrs.

This fixes issue 104; thanks dmarkey
parent 210f84ba
......@@ -210,7 +210,7 @@ class FSOperations(Operations):
try:
value = self.fs.getxattr(path,name)
except AttributeError:
raise OSError(errno.ENODATA,"no attribute '%s'" % (name,))
raise UnsupportedError("getxattr")
else:
if value is None:
raise OSError(errno.ENODATA,"no attribute '%s'" % (name,))
......@@ -226,7 +226,7 @@ class FSOperations(Operations):
try:
return self.fs.listxattrs(path)
except AttributeError:
return []
raise UnsupportedError("listxattrs")
@handle_fs_errors
def mkdir(self, path, mode):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment