Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-12766 test: convert time to seconds properly
[fs/lustre-release.git]
/
lustre
/
tests
/
mmp.sh
diff --git
a/lustre/tests/mmp.sh
b/lustre/tests/mmp.sh
index
1db6ff4
..
a4997ed
100755
(executable)
--- a/
lustre/tests/mmp.sh
+++ b/
lustre/tests/mmp.sh
@@
-407,11
+407,12
@@
mount_after_reboot() {
# Run e2fsck on the Lustre server target.
run_e2fsck() {
local facet=$1
# Run e2fsck on the Lustre server target.
run_e2fsck() {
local facet=$1
- shift
- local device=$1
- shift
+ local device=$2
+ shift 2
local opts="$@"
local opts="$@"
+ # turn on pfsck if it is supported
+ do_facet $facet $E2FSCK -h 2>&1 | grep -qw -- -m && opts+=" -m8"
echo "Running e2fsck on the device $device on $facet..."
do_facet $facet "$E2FSCK $opts $device"
return ${PIPESTATUS[0]}
echo "Running e2fsck on the device $device on $facet..."
do_facet $facet "$E2FSCK $opts $device"
return ${PIPESTATUS[0]}