aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/ioctl.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@tuxera.com>2010-10-15 08:45:00 -0400
committerChristoph Hellwig <hch@lst.de>2010-10-15 08:45:00 -0400
commit46bf36ecec79bbe5373ef68f0ed36cbf62e03482 (patch)
tree318bcc4d716bcf933a8ffbc87abc457b2084b40e /fs/hfsplus/ioctl.c
parent32e39e19ccb0f25c9c1b7ff246e17e795366bbbd (diff)
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: Christoph Hellwig <hch@tuxera.com>
Diffstat (limited to 'fs/hfsplus/ioctl.c')
-rw-r--r--fs/hfsplus/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hfsplus/ioctl.c b/fs/hfsplus/ioctl.c
index 80eb5b3a5edd..5b4667e08ef7 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,
192 } else 192 } else
193 res = size ? -ERANGE : 4; 193 res = size ? -ERANGE : 4;
194 } else 194 } else
195 res = -ENODATA; 195 res = -EOPNOTSUPP;
196out: 196out:
197 if (size) 197 if (size)
198 hfs_find_exit(&fd); 198 hfs_find_exit(&fd);