Whamcloud - gitweb
b=21264 workaround dd bus error
authorAlexander.Zarochentev <alexander.zarochentev@sun.com>
Wed, 3 Feb 2010 18:01:02 +0000 (21:01 +0300)
committerRobert Read <rread@sun.com>
Wed, 3 Feb 2010 20:02:39 +0000 (12:02 -0800)
A buggy coreutils/gettext combination workaround.  Suppressing dd xfer
statistic makes dd do not call gnu gettext library and avoid crashing.

i=robert.read

lustre/tests/run_dd.sh

index d50150e..d8151d8 100755 (executable)
@@ -28,7 +28,9 @@ while [ ! -e "$END_RUN_FILE" ] && $CONTINUE; do
     echoerr "$(date +'%F %H:%M:%S'): dd run starting"
     mkdir -p $TESTDIR
     cd $TESTDIR
     echoerr "$(date +'%F %H:%M:%S'): dd run starting"
     mkdir -p $TESTDIR
     cd $TESTDIR
-    dd bs=4k count=1000000 if=/dev/zero of=$TESTDIR/dd-file 1>$LOG &
+    # suppress dd xfer stat to workaround buggy coreutils/gettext
+    # combination in RHEL5 and OEL5, see BZ 21264
+    dd bs=4k count=1000000 status=noxfer if=/dev/zero of=$TESTDIR/dd-file 1>$LOG &
     load_pid=$!
     wait $load_pid
 
     load_pid=$!
     wait $load_pid