Whamcloud - gitweb
LU-14286 osd-ldiskfs: fallocate() should zero new blocks
[fs/lustre-release.git] / lustre / tests / runmultiop_bg_pause
1 #!/bin/bash
2
3 # Run multiop in the background, but wait for it to print
4 # "PAUSING" to its stdout before returning from this function.
5
6 PTLDEBUG=${PTLDEBUG:--1}
7 LUSTRE=${LUSTRE:-`dirname $0`/..}
8 MULTIOP=${MULTIOP:-multiop}
9 . $LUSTRE/tests/test-framework.sh
10
11 TMP=${TMP:-/tmp}
12 MULTIOP_PID_FILE=${MULTIOP_PID_FILE:-$TMP/multiop_bg.pid}
13 rm -f $MULTIOP_PID_FILE
14
15 multiop_bg_pause $*
16 rc=$?
17 [ "$rc" = 0 ] && echo $! > $MULTIOP_PID_FILE
18 exit $rc