From: Anand Jain Date: Wed, 29 Jan 2025 07:56:56 +0000 (+0800) Subject: fstests: btrfs: testcase for sysfs policy syntax verification X-Git-Tag: v2025.04.13~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f5cb79fb0f1098df52634abe275c402d64b1f029;p=xfstests-dev.git fstests: btrfs: testcase for sysfs policy syntax verification Checks if the sysfs attribute sanitizes arguments and verifies input syntax. Signed-off-by: Anand Jain Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/tests/btrfs/329 b/tests/btrfs/329 new file mode 100755 index 00000000..f4fadded --- /dev/null +++ b/tests/btrfs/329 @@ -0,0 +1,21 @@ +#! /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/sysfs +. ./common/filter + +_require_test +_require_fs_sysfs_attr_policy $TEST_DEV read_policy round-robin + +_verify_sysfs_syntax $TEST_DEV read_policy round-robin 4096 + +status=0 +exit diff --git a/tests/btrfs/329.out b/tests/btrfs/329.out new file mode 100644 index 00000000..eff7573a --- /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