Whamcloud - gitweb
- added test_3b which emulates recursive mount. Does not pass yet.
[fs/lustre-release.git] / lustre / tests / runvmstat
1 #!/bin/sh
2 null() {
3         :
4 }
5
6 if [ "$1" == "-q" ]; then
7         echo "echo off"
8         ECHO="null"
9         shift
10 else
11         echo "echo on"
12         ECHO=echo
13 fi
14 vmstat 1 | while read LINE ; do
15         LINE="`date +%s`: $LINE"
16         $ECHO "$LINE"
17         [ "$1" ] && echo "$LINE" >> $1
18 done