Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
is set appropriately.
.SH ERRORS
.TP
+.B E2BIG
+The size of the list of attribute names for this file exceeds
+the system-imposed limit.
+See BUSG.
+.TP
.B ENOTSUP
Extended attributes are not supported by the filesystem, or are disabled.
.TP
exit(EXIT_SUCCESS);
}
.fi
+.SH BUGS
+.\" The xattr(7) page refers to this text:
+As noted in
+.BR xattr (7),
+the VFS imposes a limit of 64 kB on the size of the extended
+attribute name list returned by
+.BR listxattr (7).
+If the total size of attribute names attached to a file exceeds this limit,
+it is no longer possible to retrieve the list of attribute names.
.SH SEE ALSO
.BR getfattr (1),
.BR setfattr (1),
The VFS imposes limitations that an attribute names is limited to 255 bytes
and an attribute value is limited to 64 kB.
The list of attribute names that
-can be returned is also limited to 64 kB.
+can be returned is also limited to 64 kB
+(see BUGS in
+.BR listxattr (2)).
Some filesystems, such as Reiserfs (and, historically, ext2 and ext3),
require the filesystem to be mounted with the