diff mbox series

[v3] fstests default configuration for btrfs testing

Message ID 0f088e8a83ee7bc0bd290cd9d8a8b830c74bb870.1744896454.git.anand.jain@oracle.com (mailing list archive)
State New
Headers show
Series [v3] fstests default configuration for btrfs testing | expand

Commit Message

Anand Jain April 17, 2025, 1:48 p.m. UTC
Add a commonly used Btrfs configuration file for quick and repeated test
runs during development. This helps streamline local testing with various
mkfs and mount option combinations.

Also update .gitignore to keep btrfs-devel.config under version control.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
v3:
Thanks for the feedback. Here's v3:
Title: Replaced standard with default for clarity.
nodiscard: Dropped this option — QEMU and VMware don't benefit much from
  it.
RECREATE_TEST_DEV: Decided to keep it; it's useful for catching bugs
  of the previous testcase.

v2:
https://lore.kernel.org/all/cfb8c19533ac3c764edc1fe62b7fde75e76579a4.1743137470.git.anand.jain@oracle.com/

v1:
https://lore.kernel.org/fstests/2223e599a760bb1a9e7b7aeb47961e970d4cccf7.1740757274.git.anand.jain@oracle.com/

 .gitignore                 |  2 ++
 configs/btrfs-devel.config | 38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 configs/btrfs-devel.config
diff mbox series

Patch

diff --git a/.gitignore b/.gitignore
index 4fd817243dca..9a9351644278 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,6 +44,8 @@  tags
 
 # custom config files
 /configs/*.config
+# Do not ignore the btrfs devel config for testing
+!/configs/btrfs-devel.config
 
 # ltp/ binaries
 /ltp/aio-stress
diff --git a/configs/btrfs-devel.config b/configs/btrfs-devel.config
new file mode 100644
index 000000000000..ffd641da3750
--- /dev/null
+++ b/configs/btrfs-devel.config
@@ -0,0 +1,38 @@ 
+# Modify as required
+[generic-config]
+TEST_DIR=/mnt/test
+TEST_DEV=/dev/sda
+SCRATCH_MNT=/mnt/scratch
+SCRATCH_DEV_POOL="/dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi"
+LOGWRITES_DEV=/dev/sdj
+
+[btrfs-compress]
+MOUNT_OPTIONS="-o compress"
+
+[btrfs-holes-spacecache]
+MKFS_OPTIONS="-O ^no-holes,^free-space-tree"
+MOUNT_OPTIONS=" "
+
+[btrfs-holes-spacecache-compress]
+MKFS_OPTIONS="-O ^no-holes,^free-space-tree"
+MOUNT_OPTIONS="-o compress"
+
+[btrfs-block-group-tree]
+MKFS_OPTIONS="-O block-group-tree"
+MOUNT_OPTIONS=" "
+
+[btrfs-raid-stripe-tree]
+MKFS_OPTIONS="-O raid-stripe-tree"
+MOUNT_OPTIONS=" "
+
+[btrfs-squota]
+MKFS_OPTIONS="-O squota"
+MOUNT_OPTIONS=" "
+
+[btrfs-subpage-normal]
+MKFS_OPTIONS="--nodesize 4k --sectorsize 4k"
+MOUNT_OPTIONS=" "
+
+[btrfs-subpage-compress]
+MKFS_OPTIONS="--nodesize 4k --sectorsize 4k"
+MOUNT_OPTIONS="-o compress"