]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstests: common/sysfs: add new file sysfs and helpers
authorAnand Jain <anand.jain@oracle.com>
Fri, 31 Jan 2025 07:14:43 +0000 (15:14 +0800)
committerZorro Lang <zlang@kernel.org>
Fri, 11 Apr 2025 04:25:08 +0000 (12:25 +0800)
commit03adc99ef11ca7f42de03c4a9b868079be0dd032
treebf1f9b6ecfe05be16c94e00d0d8ecb22c7729b23
parentafdb10ee1853db1e1ac57d226a695446f191c110
fstests: common/sysfs: add new file sysfs and helpers

Introduce `verify_sysfs_syntax()` and `_require_fs_sysfs_attr_policy()`
to verify whether a sysfs attribute rejects invalid input arguments
during writes.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/sysfs [new file with mode: 0644]