[PATCH 7/8] 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 68646a7709..f2b60c317e 100644
--- a/common/report
+++ b/common/report
@@ -53,6 +53,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 7eee76c0ee..add3a42fa4 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]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux