]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: Remote attr validation fixes and optimisations
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 12:24:51 +0000 (22:24 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 21:23:53 +0000 (16:23 -0500)
commitd266aa80558f2c03cd370ab1f698ecdb623f514f
tree92ed5da14b0b9154511b97cc1ed76061ffe9be55
parentf383ee8c8e9468e82509fa248715f72fc2a4fe8b
xfs: Remote attr validation fixes and optimisations

- optimise the calcuation for the number of blocks in a remote xattr.
- check attribute length against MAX_XATTR_SIZE, not MAXPATHLEN
- whitespace fixes

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
libxfs/xfs_attr_remote.c