summaryrefslogtreecommitdiffstats
path: root/qa/workunits/fs/snaps/snaptest-estale.sh
blob: a4fb94368d4c1f349bdf73466cb2eeae0be3979c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -x

mkdir .snap/foo

echo "We want ENOENT, not ESTALE, here."
for f in `seq 1 100`
do
    stat .snap/foo/$f 2>&1 | grep 'No such file'
done

rmdir .snap/foo

echo "OK"