Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / tests / fcachesize-read-file
1 #!/bin/sh
2 # $Id$
3
4 FS=${FS:-${objdir}/../appl/fs/fs}
5 SIZE1=`$FS getcache | awk '{ print $8 ; exit }'`
6 SIZE2=`expr $SIZE1 + 4`
7 if test -w /dev/null; then
8 dd if=../foo of=/dev/null bs=1k count=$SIZE2 >/dev/null 2>/dev/null || exit 1
9 rm ../foo || exit 1
10 else
11 echo "not running dd (you have no /dev/null)"
12 fi
13
14 exit 0