xfs: add CRC checks to remote symlinks
authorDave Chinner <dchinner@redhat.com>
Wed, 3 Apr 2013 05:11:19 +0000 (16:11 +1100)
committerBen Myers <bpm@sgi.com>
Sat, 27 Apr 2013 16:49:28 +0000 (11:49 -0500)
commitf948dd76dde021c050c7c35720dc066a8b9a5e35
tree457f8097ba46f72ecb6417f96f890f9ee202f6cc
parent19de7351a8eb82dc99745e60e8f43474831d99c7
xfs: add CRC checks to remote symlinks

Add a header to the remote symlink block, containing location and
owner information, as well as CRCs and LSN fields. This requires
verifiers to be added to the remote symlink buffers for CRC enabled
filesystems.

This also fixes a bug reading multiple block symlinks, where the second
block overwrites the first block when copying out the link name.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_buf_item.h
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_symlink.c
fs/xfs/xfs_symlink.h