All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: fstests@vger.kernel.org
Cc: linux-btrfs@vger.kernel.org, johannes.thumshirn@wdc.com,
	fdmanana@kernel.org
Subject: [PATCH v8 02/10] common: add _require_btrfs_no_nodatacow helper
Date: Thu,  4 Jan 2024 11:18:08 +0530	[thread overview]
Message-ID: <1cea3aa45d90904999866da86565528e45532109.1704344811.git.anand.jain@oracle.com> (raw)
In-Reply-To: <cover.1704344811.git.anand.jain@oracle.com>

From: Johannes Thumshirn <johannes.thumshirn@wdc.com>

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>
---
 common/btrfs | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/common/btrfs b/common/btrfs
index f91f8dd869a1..9dd2a7f49e16 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
-- 
2.38.1


  parent reply	other threads:[~2024-01-04  5:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-04  5:48 [PATCH v8 0/10] fstests: add tests for btrfs' raid-stripe-tree feature Anand Jain
2024-01-04  5:48 ` [PATCH v8 01/10] fstests: doc: add new raid-stripe-tree group Anand Jain
2024-01-04  5:48 ` Anand Jain [this message]
2024-01-04  5:48 ` [PATCH v8 03/10] common: add _require_btrfs_free_space_tree Anand Jain
2024-01-04  5:48 ` [PATCH v8 04/10] common: add _filter_trailing_whitespace Anand Jain
2024-01-04  5:48 ` [PATCH v8 05/10] common: add filter for btrfs raid-stripe dump Anand Jain
2024-01-04  5:48 ` [PATCH v8 06/10] btrfs: add fstest for stripe-tree metadata with 4k write Anand Jain
2024-01-04  5:48 ` [PATCH v8 07/10] btrfs: add fstest for 8k write spanning two stripes on raid-stripe-tree Anand Jain
2024-01-04  5:48 ` [PATCH v8 08/10] btrfs: add fstest for writing to a file at an offset with RST Anand Jain
2024-01-04  5:48 ` [PATCH v8 09/10] btrfs: add fstests to write 128k to a RST filesystem Anand Jain
2024-01-04  5:48 ` [PATCH v8 10/10] btrfs: add fstest for overwriting a file partially with RST Anand Jain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1cea3aa45d90904999866da86565528e45532109.1704344811.git.anand.jain@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=fdmanana@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=johannes.thumshirn@wdc.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.