]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common: add _require_btrfs_no_nodatacow helper
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Wed, 13 Dec 2023 11:35:24 +0000 (03:35 -0800)
committerZorro Lang <zlang@kernel.org>
Sun, 14 Jan 2024 12:39:09 +0000 (20:39 +0800)
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/btrfs

index f91f8dd869a1ce2f84c0c7e91013549dfc0be67f..9dd2a7f49e1621786b3cb7b7e6aa833984b60065 100644 (file)
@@ -120,6 +120,13 @@ _require_btrfs_no_compress()
        fi
 }
 
+_require_btrfs_no_nodatacow()
+{
+       if _normalize_mount_options "$MOUNT_OPTIONS" | grep -q "nodatacow"; then
+               _notrun "This test requires no nodatacow enabled"
+       fi
+}
+
 _check_btrfs_filesystem()
 {
        device=$1