common/rc: factor out _scratch_xfs_[get|set]_sb_field
authorHou Tao <houtao1@huawei.com>
Thu, 11 Jan 2018 06:49:33 +0000 (14:49 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 12 Jan 2018 03:40:39 +0000 (11:40 +0800)
commit20cb5f11991ca0d4032a0256bcb4316e1d93880a
treef93d2c0f8221a1235c04f156e41e27649f849172
parentb237e01b12881d1ad02ba387b8fa32e89e44376b
common/rc: factor out _scratch_xfs_[get|set]_sb_field

It's common to get and set the values of fields in XFS super block,
so factor them out as scratch_xfs_[get|set]_sb_field, reimplement
them based on _scratch_xfs_[get|set]_metadata_field, and update the
related test cases accordingly.

Also move _scratch_xfs_[get|set]_metadata_field from common/fuzzy to
common/xfs.

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/fuzzy
common/xfs
tests/xfs/007
tests/xfs/098
tests/xfs/186
tests/xfs/199
tests/xfs/307
tests/xfs/308
tests/xfs/339
tests/xfs/340