xfs/516: Use scratch_xfs_get/set_sb_field api
authorYang Xu <xuyang2018.jy@cn.fujitsu.com>
Tue, 30 Jun 2020 06:23:07 +0000 (14:23 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 19 Jul 2020 16:40:07 +0000 (00:40 +0800)
commit5e169fbd349c3542bef2df7d19745db271ee7ce7
tree7b348c9d04f5c690ee7f6658d24df96efd445c1c
parent3c7fd09bc79481184fa6367564b9d262347585bd
xfs/516: Use scratch_xfs_get/set_sb_field api

When using old xfsprogs, this case fails as below:
    +write: invalid option -- 'd'

xfs_db write command support -d options since xfsprogs commit
86769b32d01 ("xfs_db: allow recalculating CRCs on invalid metadata").
For avoid invalid error, use scratch_xfs_set_sb_field api instead.

Also add missing "rm -f $seqres.full" at the beginning of the test.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/516