Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / tests / fcachesize-write-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 -r /dev/zero; then
8 dd if=/dev/zero of=../foo bs=1k count=$SIZE2 >/dev/null 2>/dev/null || exit 1
9 else
10 echo "not running dd (you have no /dev/zero)"
11 fi
12
13 exit 0