提交 46bf36ec 编写于 作者: C Christoph Hellwig 提交者: Christoph Hellwig

hfsplus: fix getxattr return value

We need to support -EOPNOTSUPP for attributes that are not supported to
match other filesystems and allow userspace to detect if Posix ACLs
are supported or not.  setxattr already gets this right.
Signed-off-by: NChristoph Hellwig <hch@tuxera.com>
上级 32e39e19
...@@ -192,7 +192,7 @@ ssize_t hfsplus_getxattr(struct dentry *dentry, const char *name, ...@@ -192,7 +192,7 @@ ssize_t hfsplus_getxattr(struct dentry *dentry, const char *name,
} else } else
res = size ? -ERANGE : 4; res = size ? -ERANGE : 4;
} else } else
res = -ENODATA; res = -EOPNOTSUPP;
out: out:
if (size) if (size)
hfs_find_exit(&fd); hfs_find_exit(&fd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册