[PATCH 13/15] report: record xfs-specific information about a test run

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Darrick J. Wong <djwong@xxxxxxxxxx>

Report various XFS-specific information about a test run.

Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx>
---
 common/report |    3 +++
 common/xfs    |   11 +++++++++++
 2 files changed, 14 insertions(+)


diff --git a/common/report b/common/report
index af3c04db56..86274af887 100644
--- a/common/report
+++ b/common/report
@@ -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}"
diff --git a/common/xfs b/common/xfs
index e679af824f..e8e4832cea 100644
--- a/common/xfs
+++ b/common/xfs
@@ -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




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux