Files
apfstests/run.rtio
T
Dave Chinner fa6a7868cd xfsqa: more sh to bash conversions
A new test is using /bin/sh and failing on debian. Clean it up and all the
remaining uses of /bin/sh.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2010-04-29 09:59:24 +10:00

62 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
#
# Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#
# (very) simple file realtime IO tests.
# TODO: make file size multiple of physmem.
filesize=1g
iosize=64k
if [ $# -gt 0 ]; then
printf "%s,%s,%s,%s,%s\n" type bytes ops time bytes/sec ops/sec
exit 0
fi
# buffered write
echo -n bwrite,
xfs_io iofile -Rft -c "pwrite -C -b $iosize 0 $filesize"
# direct write
echo -n dwrite,
xfs_io iofile -Rftd -c "pwrite -C -b $iosize 0 $filesize"
# buffered re-write
echo -n brwrite,
xfs_io iofile -R -c "pwrite -C -b $iosize 0 $filesize"
# direct re-write
echo -n drwrite,
xfs_io iofile -Rd -c "pwrite -C -b $iosize 0 $filesize"
# buffered read
echo -n bread,
xfs_io iofile -R -c "pread -C -b $iosize 0 $filesize"
# buffered re-read
echo -n brread,
xfs_io iofile -R -c "pread -C -b $iosize 0 $filesize"
# direct read
echo -n dread,
xfs_io iofile -Rd -c "pread -C -b $iosize 0 $filesize"
# direct re-read
echo -n drread,
xfs_io iofile -Rd -c "pread -C -b $iosize 0 $filesize"