]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: metadump should handle symlinks properly
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 26 Apr 2019 20:40:28 +0000 (15:40 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 26 Apr 2019 20:40:28 +0000 (15:40 -0500)
commit0e81250e5125dc664e1938288e47ff52b1cacbe4
treebd4bab9ab99769f55b5ecc1aa31d9d9ed64bb62b
parent001df390de88731675adae166db5f189924b107f
xfs_db: metadump should handle symlinks properly

Remote symlink target blocks are multi-fsb objects on XFS v5 filesystems
because we only write one rmt header per data fork extent.  For fs
blocksize >= 2048 we never have more than one block and therefore nobody
noticed, but for blocksize == 1024 this is definitely not true and leads
to metadump spraying error messages about symlink block crc errors.
Therefore, reformulate the symlink metadump into a multi-fsb dump
function.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
[sandeen: shrink the map declaration]
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/metadump.c