ne_off = HTON__u64(off);
id = HTON__u64(id);
if (memcmp(addr, (char *)&ne_off, LPDS)) {
- CERROR("%s: for offset "LPU64" off: "LPX64" != "LPX64"\n",
+ CERROR("%s: offset "LPU64" off: "LPX64" != "LPX64"\n",
who, off, *(__u64 *)addr, ne_off);
err = -EINVAL;
}
if (memcmp(addr + LPDS, (char *)&id, LPDS)) {
- CERROR("%s: for offset "LPU64" id: "LPX64" != "LPX64"\n",
+ CERROR("%s: offset "LPU64" id: "LPX64" != "LPX64"\n",
who, off, *(__u64 *)(addr + LPDS), id);
err = -EINVAL;
}
addr += end - LPDS - LPDS;
if (memcmp(addr, (char *)&ne_off, LPDS)) {
- CERROR("%s: for offset "LPU64" end off: "LPX64" != "LPX64"\n",
+ CERROR("%s: offset "LPU64" end off: "LPX64" != "LPX64"\n",
who, off, *(__u64 *)addr, ne_off);
err = -EINVAL;
}
if (memcmp(addr + LPDS, (char *)&id, LPDS)) {
- CERROR("%s: for offset "LPU64" end id: "LPX64" != "LPX64"\n",
+ CERROR("%s: offset "LPU64" end id: "LPX64" != "LPX64"\n",
who, off, *(__u64 *)(addr + LPDS), id);
err = -EINVAL;
}
pkglib_SCRIPTS = common.sh
pkgcfg_DATA = lustre.cfg
noinst_PROGRAMS = openunlink testreq truncate directio openme writeme mcreate
-noinst_PROGRAMS += munlink tchmod toexcl fsx #ldaptest
+noinst_PROGRAMS += munlink tchmod toexcl fsx test_brw #ldaptest
# ldaptest_SOURCES = ldaptest.c
tchmod_SOURCES = tchmod.c
openme_SOURCES = openme.c
writeme_SOURCES = writeme.c
fsx_SOURCES = fsx.c
+test_brw_SOURCES = test_brw.c
include $(top_srcdir)/Rules
#!/bin/sh
SIZE=5g
COUNT=0
+VERIFY="-+d"
+FILE=/mnt/lustre/test.$$
[ $1 ] && SIZE=$1
rm -f endiozone
while date; do
echo "Test #$COUNT"
- iozone -i 0 -i 1 -f /mnt/lustre/test.$$ -s $SIZE 2>&1 || exit $?
+ iozone $VERIFY -r 64 -i 0 -i 1 -f $FILE -s $SIZE 2>&1 || exit $?
COUNT=`expr $COUNT + 1`
[ -f endiozone ] && rm endiozone && exit 0
done | tee /tmp/iozone.log