it was meant to confirm that wrapfs returns an error when
stacked on top of itself but we are no longer doing that
+++ /dev/null
-#!/bin/sh
-SCRATCH_DEV=/dev/sdb
-SCRATCH_DIR=/n/scratch
-LOWER_DIR=/n/lower
-TMP_DIR=/n/tmp
-FS_TYPE=ext4
-
-function runcmd
-{
- echo "CMD: $@"
- sleep 0.25
- $@
- ret=$?
- if test $ret -ne 0 && test "$1 $2 $3" != 'mount -t wrapfs'; then
- echo "$0: exit code $ret"
- exit $ret
- fi
-}
-
-dirs="$TMP_DIR $LOWER_DIR $SCRATCH_DIR"
-for d in $dirs; do
- echo checking dir $d
- if cat /proc/mounts | grep $d; then
- runcmd umount $d
- fi
-done
-
-runcmd mkfs -t $FS_TYPE $SCRATCH_DEV <<< y
-runcmd mount $SCRATCH_DEV $SCRATCH_DIR
-runcmd mount -t wrapfs $SCRATCH_DIR $LOWER_DIR
-runcmd mount -t wrapfs $LOWER_DIR $TMP_DIR
-if test $ret != 32; then
- echo wrapfs returned unexpected error code attempting to mount on top of itself: $ret
-else
- echo wrapfs returned expected error code
-fi