@@ -64,6 +64,9 @@ __generate_report_vars() {
__generate_blockdev_report_vars "TEST_DEV"
__generate_blockdev_report_vars "SCRATCH_DEV"
+ # Add per-filesystem variables to the report variable list
+ test "$FSTYP" = "xfs" && __generate_xfs_report_vars
+
# Optional environmental variables
for varname in "${REPORT_ENV_LIST_OPT[@]}"; do
test -n "${!varname}" && REPORT_VARS["${varname}"]="${!varname}"
@@ -2,6 +2,17 @@
# XFS specific common functions.
#
+__generate_xfs_report_vars() {
+ __generate_blockdev_report_vars TEST_RTDEV
+ __generate_blockdev_report_vars TEST_LOGDEV
+ __generate_blockdev_report_vars SCRATCH_RTDEV
+ __generate_blockdev_report_vars SCRATCH_LOGDEV
+
+ REPORT_VARS["XFS_ALWAYS_COW"]="$(cat /sys/fs/xfs/debug/always_cow 2>/dev/null)"
+ REPORT_VARS["XFS_LARP"]="$(cat /sys/fs/xfs/debug/larp 2>/dev/null)"
+ REPORT_ENV_LIST_OPT+=("TEST_XFS_REPAIR_REBUILD" "TEST_XFS_SCRUB_REBUILD")
+}
+
_setup_large_xfs_fs()
{
fs_size=$1