projects/linux·commit 46bf36ec

hfsplus: fix getxattr return value

46bf36ec · Christoph Hellwig <[email protected]> · 2010-10-15 05:45:00 -07:00

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: Christoph Hellwig <[email protected]>
Commit
46bf36ecec79bbe5373ef68f0ed36cbf62e03482
Parents
32e39e19

Changes

1 files changed · +1 −1

FileStatusAddDelContent
fs/hfsplus/ioctl.cmodified+1−1View file

fs/hfsplus/ioctl.c

View file
diff --git a/fs/hfsplus/ioctl.c b/fs/hfsplus/ioctl.c
index 80eb5b3..5b4667e 100644
--- a/fs/hfsplus/ioctl.c
+++ b/fs/hfsplus/ioctl.c
@@ -192,7 +192,7 @@ ssize_t hfsplus_getxattr(struct dentry *dentry, const char *name,
} else
res = size ? -ERANGE : 4;
} else
- res = -ENODATA;
+ res = -EOPNOTSUPP;
out:
if (size)
hfs_find_exit(&fd);