blob: a1e7cdb8c6851817b91f7f67970646a44093cef0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/bash
# Reproducer for https://github.com/rfjakob/gocryptfs/issues/893 .
# Run this script as non-root against a root-mounted gocryptfs -allow_other.
set -eu
mountpoint $1
cd $1
work() {
for i in $(seq 100) ; do
D=mtest.$BASHPID.$i/foo/bar/baz
mkdir -p $D
touch $D/foo $D/bar
echo AAAAAAAAAAAAAAAAAAAAA > $D/foo
rm $D/foo
mkdir $D/baz
done
}
rm -Rf mtest.*
echo .
work &
work &
wait
|