Re: [PATCH v2] fstests: add btrfs standard configuration

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]




Gentle ping for the review and rvb.

Thanks! Anand

On 28/3/25 12:51, Anand Jain wrote:
Here's a standard configuration for quick, regular checks, commonly used
during development to verify Btrfs.

Signed-off-by: Anand Jain <anand.jain@xxxxxxxxxx>
---
v2:
- Renamed config file to `configs/btrfs-devel.config`
- global section renamed to `generic-config`
- Section names now use hyphens
- Added `RECREATE_TEST_DEV=true`
- Removed `MKFS_OPTIONS="--nodiscard"` from `generic-config`

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

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..3a07b731abd9
--- /dev/null
+++ b/configs/btrfs-devel.config
@@ -0,0 +1,40 @@
+# 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"
+LOGWRITES_DEV=/dev/sdf
+RECREATE_TEST_DEV=true
+
+[btrfs-compress]
+MKFS_OPTIONS="--nodiscard"
+MOUNT_OPTIONS="-o compress"
+
+[btrfs-holes-spacecache]
+MKFS_OPTIONS="--nodiscard -O ^no-holes,^free-space-tree"
+MOUNT_OPTIONS=" "
+
+[btrfs-holes-spacecache-compress]
+MKFS_OPTIONS="--nodiscard -O ^no-holes,^free-space-tree"
+MOUNT_OPTIONS="-o compress"
+
+[btrfs-block-group-tree]
+MKFS_OPTIONS="--nodiscard -O block-group-tree"
+MOUNT_OPTIONS=" "
+
+[btrfs-raid-stripe-tree]
+MKFS_OPTIONS="--nodiscard -O raid-stripe-tree"
+MOUNT_OPTIONS=" "
+
+[btrfs-squota]
+MKFS_OPTIONS="--nodiscard -O squota"
+MOUNT_OPTIONS=" "
+
+[btrfs-subpage-normal]
+MKFS_OPTIONS="--nodiscard --nodesize 4k --sectorsize 4k"
+MOUNT_OPTIONS=" "
+
+[btrfs-subpage-compress]
+MKFS_OPTIONS="--nodiscard --nodesize 4k --sectorsize 4k"
+MOUNT_OPTIONS="-o compress"





[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux