The old _require_debugfs helper doesn't work now, fix it to check
a system supports debugfs. And then call this helper in cases which
need $DEBUGFS_MNT.
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
_require_debugfs()
{
- #boot_params always present in debugfs
- [ -d "$DEBUGFS_MNT/boot_params" ] || _notrun "Debugfs not mounted"
+ local type
+
+ if [ -d "$DEBUGFS_MNT" ];then
+ type=$(findmnt -rncv -T $DEBUGFS_MNT -S debugfs -o FSTYPE)
+ [ "$type" = "debugfs" ] && return 0
+ fi
+
+ _notrun "Cannot find debugfs on $DEBUGFS_MNT"
}
#
. ./common/fail_make_request
_supported_fs btrfs
+_require_debugfs
_require_scratch
_require_fail_make_request
_require_scratch_dev_pool 2
# real QA test starts here
_supported_fs ceph
-
+_require_debugfs
_require_xfs_io_command "copy_range"
_exclude_test_mount_option "test_dummy_encryption"
_require_attrs