(afsrights2nnpfsrights): export
[arla.git] / tests / hardlink3
blobce623065322a0b34afcfd0e1597fcde03854fca0
1 #!/bin/sh
2 # $Id$
4 if test "X$FAST" != "X" ; then echo "Not running $0" >&4; exit 0 ; fi
6 FS=${FS:-${objdir}/../appl/fs/fs}
8 touch file
9 for i in `awk 'BEGIN {for(i=0; i < 1000; ++i) printf "%d\n", i}' /dev/null`; do
10 ln file file$i
11 done
13 # now trigger bulkstatus
14 for i in `awk 'BEGIN {for(i=0; i < 1000; ++i) printf "%d\n", i}' /dev/null`; do
15 ls -l file > /dev/null 2>&1 || exit 1
16 ${FS} flush file
17 done
19 # just stat them all
20 for i in `awk 'BEGIN {for(i=0; i < 1000; ++i) printf "%d\n", i}' /dev/null`; do
21 ls -l file$i > /dev/null 2>&1 || exit 1
22 done
24 #clean up
25 for i in `awk 'BEGIN {for(i=0; i < 1000; ++i) printf "%d\n", i}' /dev/null`; do
26 rm file$i > /dev/null 2>&1 || exit 1
27 done
28 rm file