[PATCH 12/14] 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 |    2 ++
 common/xfs    |   10 ++++++++++
 2 files changed, 12 insertions(+)


diff --git a/common/report b/common/report
index 90d4f980d1..d538fc38a9 100644
--- a/common/report
+++ b/common/report
@@ -58,6 +58,8 @@ __generate_report_vars() {
 
 	__generate_blockdev_report_vars "TEST_DEV"
 	__generate_blockdev_report_vars "SCRATCH_DEV"
+
+	test "$FSTYP" = "xfs" && __generate_xfs_report_vars
 }
 
 #
diff --git a/common/xfs b/common/xfs
index 97c049e2ca..ea8f54e03b 100644
--- a/common/xfs
+++ b/common/xfs
@@ -2,6 +2,16 @@
 # 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)"
+}
+
 _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