]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
hfsplus: fix getxattr return value
authorChristoph Hellwig <hch@tuxera.com>
Fri, 15 Oct 2010 12:45:00 +0000 (05:45 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 15 Oct 2010 12:45:00 +0000 (05:45 -0700)
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>
fs/hfsplus/ioctl.c

index 80eb5b3a5edddeb323b31991861eabaad9305c18..5b4667e08ef7789e49c274758a28d11ef86d5fde 100644 (file)
@@ -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);