Skip to content

Commit

Permalink
hfsplus: fix getxattr return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Christoph Hellwig committed Oct 15, 2010
1 parent 32e39e1 commit 46bf36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/hfsplus/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 46bf36e

Please sign in to comment.