]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: avoid dependency on Linux XATTR_SIZE_MAX
authorJan Tulak <jtulak@redhat.com>
Tue, 13 Oct 2015 23:57:54 +0000 (10:57 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 13 Oct 2015 23:57:54 +0000 (10:57 +1100)
commitec9d24e9e8ac9637ba4d99f452f5fef2a77c9acf
tree41f0c07ac0f153962852aa52be1a04b1602fad90
parentc6e8a131315d842264aa96fbb29c85a87e05a07c
libxfs: avoid dependency on Linux XATTR_SIZE_MAX

Currently, we depends on Linux XATTR value for on disk
definitions. Which causes trouble on other platforms and
maybe also if this value was to change.

Fix it by creating a custom definition independent from
those in Linux (although with the same values), so it is OK
with the be16 fields used for holding these attributes.

Signed-off-by: Jan Tulak <jtulak@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_attr_remote.c
libxfs/xfs_format.h