Add a _require_btrfs_no_nodatasum helper to skip a test if the nodatasum
mount option is give, as we do have several tests that fail, for several
reasons, when that mount option is passed.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
fi
}
+_require_btrfs_no_nodatasum()
+{
+ if _normalize_mount_options "$MOUNT_OPTIONS" | grep -q "nodatasum"; then
+ _notrun "This test requires no nodatasum enabled"
+ fi
+}
+
_require_btrfs_free_space_tree()
{
_scratch_mkfs > /dev/null 2>&1