]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common: refactor sysfs_attr functions
authorBoris Burkov <boris@bur.io>
Thu, 28 Sep 2023 23:16:43 +0000 (16:16 -0700)
committerZorro Lang <zlang@kernel.org>
Thu, 5 Oct 2023 14:32:01 +0000 (22:32 +0800)
commitc0cafb48a892e0d9e414478df5d5f818d6c101dd
tree4c5e59055eac75fb8344f8d45a9aaf0e3e141950
parent2fddeb5c79ff16bf37e1f1d809bd94b360c27801
common: refactor sysfs_attr functions

Expand the has/get/require functions to allow passing a dev by
parameter, and implement the test_dev specific one in terms of the new
generic one.

Signed-off-by: Boris Burkov <boris@bur.io>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc