On Wed, Apr 09, 2025 at 03:43:17PM +0800, Anand Jain wrote: > Checks if the sysfs attribute sanitizes arguments and verifies > input syntax. > > Signed-off-by: Anand Jain <anand.jain@xxxxxxxxxx> > --- This version is good to me, Reviewed-by: Zorro Lang <zlang@xxxxxxxxxx> > tests/btrfs/329 | 21 +++++++++++++++++++++ > tests/btrfs/329.out | 19 +++++++++++++++++++ > 2 files changed, 40 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..f4faddedf076 > --- /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 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 >