Skip to content

Commit

Permalink
stress2: Update test to the sysctl 'vfs.lookup_shared' being removed
Browse files Browse the repository at this point in the history
  • Loading branch information
phoatfreebsd committed Sep 13, 2021
1 parent ddd74e4 commit 89379af
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions tools/test/stress2/misc/unionfs2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,15 @@

[ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1

saved=`sysctl vfs.lookup_shared | awk '{print $NF}'`
for i in 1 0; do
sysctl vfs.lookup_shared=$i
[ -d /var/tmp/unionfs ] || mkdir -p /var/tmp/unionfs
mount_unionfs /var/tmp/unionfs /tmp/stressX
[ -d /var/tmp/unionfs ] || mkdir -p /var/tmp/unionfs
mount_unionfs /var/tmp/unionfs /tmp/stressX

export RUNDIR=/var/tmp/unionfs/stressX
export runRUNTIME=10m # Run tests for 10 minutes
(cd ..; ./run.sh disk.cfg)
false
while mount | grep -q /unionfs; do
umount /tmp/stressX > /dev/null 2>&1
done
rm -rf /var/tmp/unionfs
export RUNDIR=/var/tmp/unionfs/stressX
export runRUNTIME=10m # Run tests for 10 minutes
(cd ..; ./run.sh disk.cfg)
false
while mount | grep -q /unionfs; do
umount /tmp/stressX > /dev/null 2>&1
done
sysctl vfs.lookup_shared=$saved
rm -rf /var/tmp/unionfs
exit 0

0 comments on commit 89379af

Please sign in to comment.