From a0b9623a7c209d7bf6da8c7d85c5eb6198807ad8 Mon Sep 17 00:00:00 2001 From: aburford Date: Sat, 14 May 2022 20:10:55 -0400 Subject: [PATCH] remove self-stack.sh script it was meant to confirm that wrapfs returns an error when stacked on top of itself but we are no longer doing that --- tests/self-stack.sh | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100755 tests/self-stack.sh diff --git a/tests/self-stack.sh b/tests/self-stack.sh deleted file mode 100755 index 37f741a..0000000 --- a/tests/self-stack.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/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 -- 2.34.1