zfsonlinux/zfs — pull request #1409 by behlendorf (2013-04-17 20:43:19+00:00)
Title: Correctly return ERANGE in getxattr(2)

According to the getxattr(2) man page the ERANGE errno should be
returned when the size of the value buffer is to small to hold the
result. Prior to this patch the implementation would just truncate
the value to size bytes.

Signed-off-by: Brian Behlendorf
Issue #1408