]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/123: fix remote symlink block size calculation
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 18 Dec 2018 20:35:57 +0000 (12:35 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sat, 22 Dec 2018 14:16:04 +0000 (22:16 +0800)
commit6cef63e6683563fa2297cb12b32f250bda5d5759
treefe8941cf4ee8e68051dff16bd2f3cd0b93b95bc0
parent4ee8c0c855b5d35b5bde714244f65ab363816c36
xfs/123: fix remote symlink block size calculation

In this test we try to create a remote symlink block by creating a
symlink target buffer large enough to exceed the size of an inode.
Unfortunately we don't use the correct block size or symlink header
size, which on a 1k block filesystem causes there to be two remote
blocks.  This causes crc verification errors in xfs_db (because it's
too dumb to load both blocks as one like the kernel does) which we
don't care about because we're about to corrupt the block anyway.

So, fix the block size calculation so that we end up with one block.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/123