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): ...@@ -210,7 +210,7 @@ class FSOperations(Operations):
try: try:
value = self.fs.getxattr(path,name) value = self.fs.getxattr(path,name)
except AttributeError: except AttributeError:
raise OSError(errno.ENODATA,"no attribute '%s'" % (name,)) raise UnsupportedError("getxattr")
else: else:
if value is None: if value is None:
raise OSError(errno.ENODATA,"no attribute '%s'" % (name,)) raise OSError(errno.ENODATA,"no attribute '%s'" % (name,))
...@@ -226,7 +226,7 @@ class FSOperations(Operations): ...@@ -226,7 +226,7 @@ class FSOperations(Operations):
try: try:
return self.fs.listxattrs(path) return self.fs.listxattrs(path)
except AttributeError: except AttributeError:
return [] raise UnsupportedError("listxattrs")
@handle_fs_errors @handle_fs_errors
def mkdir(self, path, mode): 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