Whamcloud - gitweb
LU-983 llite: align readahead to 1M after ra_max adjustment
[fs/lustre-release.git] / lustre / tests / runmultiop_bg_pause
index 823ebdd..640cc29 100644 (file)
@@ -7,5 +7,11 @@ PTLDEBUG=${PTLDEBUG:--1}
 LUSTRE=${LUSTRE:-`dirname $0`/..}
 . $LUSTRE/tests/test-framework.sh
 
+TMP=${TMP:-/tmp}
+MULTIOP_PID_FILE=${MULTIOP_PID_FILE:-$TMP/multiop_bg.pid}
+rm -f $MULTIOP_PID_FILE
+
 multiop_bg_pause $*
-exit $?
+rc=$?
+[ "$rc" = 0 ] && echo $! > $MULTIOP_PID_FILE
+exit $rc