diff options
author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2023-12-13 03:35:24 -0800 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2024-01-14 20:39:09 +0800 |
commit | 81af9975ac4d5e6ad6e3c58ddf3c7452257f2992 (patch) | |
tree | 6ee9889560f0fa969099c1cdd66a8303fa9a155a | |
parent | 103e0a619bdc64e7ca358a3588b4f3bac505ee15 (diff) | |
download | xfstests-dev-81af9975ac4d5e6ad6e3c58ddf3c7452257f2992.tar.gz |
common: add _require_btrfs_no_nodatacow helper
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>
-rw-r--r-- | common/btrfs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/btrfs b/common/btrfs index f91f8dd869..9dd2a7f49e 100644 --- a/common/btrfs +++ b/common/btrfs @@ -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 |