Checks if the sysfs attribute sanitizes arguments and verifies input syntax. Signed-off-by: Anand Jain <anand.jain@xxxxxxxxxx> --- tests/btrfs/329 | 18 ++++++++++++++++++ tests/btrfs/329.out | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100755 tests/btrfs/329 create mode 100644 tests/btrfs/329.out diff --git a/tests/btrfs/329 b/tests/btrfs/329 new file mode 100755 index 000000000000..3b52d51bb477 --- /dev/null +++ b/tests/btrfs/329 @@ -0,0 +1,18 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2025 Oracle. All Rights Reserved. +# +# FS QA Test 329 +# +# Verify sysfs knob input syntax for read_policy round-robin +# +. ./common/preamble +_begin_fstest auto quick + +. ./common/filter + +_require_fs_sysfs_attr_policy $TEST_DEV read_policy round-robin +verify_sysfs_syntax $TEST_DEV read_policy round-robin 4k + +status=0 +exit diff --git a/tests/btrfs/329.out b/tests/btrfs/329.out new file mode 100644 index 000000000000..eff7573adb6a --- /dev/null +++ b/tests/btrfs/329.out @@ -0,0 +1,19 @@ +QA output created by 329 +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument +Invalid argument -- 2.47.0