]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: correctly map remote attr buffers during removal
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 12:24:57 +0000 (22:24 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 21:31:21 +0000 (16:31 -0500)
commit526f9be5acd2743fdef4cb95dbb8bab0d7dbca69
tree8e0c03f5ab05155c42f6b6a0b3e3a557fb2f7f3a
parent4da23ca6556d22e1ce5fb004d995a4227d455b86
xfs: correctly map remote attr buffers during removal

If we don't map the buffers correctly (same as for get/set
operations) then the incore buffer lookup will fail. If a block
number matches but a length is wrong, then debug kernels will ASSERT
fail in _xfs_buf_find() due to the length mismatch. Ensure that we
map the buffers correctly by basing the length of the buffer on the
attribute data length rather than the remote block count.

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