tools: add a dm-logwrites replay tool
[xfstests-dev.git] / tests / generic / 482
index f26e6fc4b95fd2eed64c04d3064c76034fda13ed..416b929a9e65cb92093562b74ca33b4ef993fcd6 100755 (executable)
 _begin_fstest auto metadata replay thin
 
 # Override the default cleanup function.
+#
+# If debugging logwrites failures using the tools/dm-logwrite-replay script,
+# switch the cleanup function to the version that is commented out below so that
+# failure leaves the corpse intact for post-mortem failure analysis.
 _cleanup()
 {
        cd /
@@ -21,6 +25,20 @@ _cleanup()
        rm -f $tmp.*
 }
 
+# tools/dm-logwrite-replay _cleanup version
+#_cleanup()
+#{
+#      cd /
+#      $KILLALL_PROG -KILL -q $FSSTRESS_PROG &> /dev/null
+#      if [ $status -eq 0 ]; then
+#              _log_writes_cleanup &> /dev/null
+#              _dmthin_cleanup
+#      else
+#              echo dm-thinvol-dev: $DMTHIN_VOL_DEV >> $seqres.full
+#      fi
+#      rm -f $tmp.*
+#}
+
 # Import common functions.
 . ./common/filter
 . ./common/dmthin