From: aburford Date: Thu, 5 May 2022 03:22:03 +0000 (-0400) Subject: small bug fixes X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=0e1aef3fa5bc39ca990d33576d2133ecf0eec535;p=wrapfs-mgmt.git small bug fixes --- diff --git a/tests/Makefile b/tests/Makefile index 30ad077..a46c15c 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -3,7 +3,7 @@ CFLAGS=-g -Wall -Werror -m32 LEN=60 OPT=-w -all: wtests2 +all: wtest2 utests: cleanup sh j-reg.sh @@ -61,16 +61,22 @@ wtests: progs wtest2: sh w-racer.sh $(OPT) ext2 30 - sh w-racer.sh $(OPT) xfs 30 - sh w-racer.sh $(OPT) reiserfs 30 - sh w-racer.sh $(OPT) tmpfs 30 + sh w-racer.sh $(OPT) ext3 30 + sh w-racer.sh $(OPT) ext4 30 + #sh w-racer.sh $(OPT) xfs 30 + #sh w-racer.sh $(OPT) reiserfs 30 + #sh w-racer.sh $(OPT) tmpfs 30 + +wtest_quick: + sh w-racer.sh $(OPT) ext2 5 + sh w-racer.sh $(OPT) ext3 5 + sh w-racer.sh $(OPT) ext4 5 + sh w-racer.sh $(OPT) xfs 5 + sh w-racer.sh $(OPT) reiserfs 5 + sh w-racer.sh $(OPT) tmpfs 5 oldall: progs tests # ntests longntests -wtests2: - sh w-racer.sh -w ext3 30 -# sh w-racer.sh ext3 30 - progs: cmpd cmpi keepopen mapper3 open-ro-close open-rw-close \ open-unlink open-write opendir re-read mapper-re-read chmodl \ seek-dir aoptest creat-unlink mk-core append diff --git a/tests/w-racer.sh b/tests/w-racer.sh index 63ec9a2..2f34765 100755 --- a/tests/w-racer.sh +++ b/tests/w-racer.sh @@ -4,7 +4,7 @@ ############################################################################## # scratch device to mount on /n/scratch #SCRATCH_DEV=/dev/hdd2 -SCRATCH_DEV=/dev/sdb1 +SCRATCH_DEV=/dev/sdb function runcmd { @@ -78,11 +78,11 @@ fi case "$lowertype" in ext2 | ext3 | ext4 | reiserfs ) - runcmd mkfs -t $lowertype -q $SCRATCH_DEV + runcmd mkfs -t $lowertype -q $SCRATCH_DEV <<< $(echo y) runcmd mount -t $lowertype $SCRATCH_DEV /n/scratch ;; xfs ) - runcmd mkfs -t $lowertype -q -f $SCRATCH_DEV + runcmd mkfs -t $lowertype -q -f $SCRATCH_DEV <<< $(echo y) runcmd mount -t $lowertype $SCRATCH_DEV /n/scratch ;; tmpfs ) @@ -93,7 +93,7 @@ case "$lowertype" in ;; nfs ) runcmd mkdir -p /n/lower - runcmd mkfs -t ext3 -q $SCRATCH_DEV + runcmd mkfs -t ext3 -q $SCRATCH_DEV <<< $(echo y) runcmd mount -t ext3 $SCRATCH_DEV /n/lower runcmd exportfs -o no_root_squash,rw localhost:/n/lower runcmd mount -t $lowertype localhost:/n/lower /n/scratch @@ -114,7 +114,7 @@ esac runcmd find /tmp -ls runcmd df /tmp runcmd df -i /tmp -runcmd ../racer/fsl-racer.sh /tmp/r ${2:-60} +runcmd ../racer/racer-fsl.sh /tmp/r ${2:-60} runcmd sync if test $? != 0 ; then ps -ef | grep bash @@ -149,4 +149,4 @@ runcmd sync # to let lower inodes/blocks purge before "df" cleanup -./j-scanlog.sh +./w-scanlog.sh diff --git a/update-stable.sh b/update-stable.sh index e49b41b..b2a357d 100755 --- a/update-stable.sh +++ b/update-stable.sh @@ -35,7 +35,7 @@ fi #echo THIS_REPO:$THIS_REPO case "$THIS_REPO" in 2.6.* | 3.* | 4.* | 5.* ) - BRANCH="linux-${THIS_REPO}.y" + BRANCH="linux-${THIS_REPO}" ;; latest ) BRANCH="master" diff --git a/wrapfs-fix-branch.sh b/wrapfs-fix-branch.sh index ac5df22..ccf568d 100755 --- a/wrapfs-fix-branch.sh +++ b/wrapfs-fix-branch.sh @@ -83,7 +83,7 @@ case "$WRAPFS_REPO" in LINUX_REPO="torvalds/linux.git" LINUX_BRANCH="korg/master" ;; - wrapfs-2.* | wrapfs-3.* | wrapfs-4.* ) + wrapfs-2.* | wrapfs-3.* | wrapfs-4.* | wrapfs-5.* ) LINUX_REPO="stable/linux-stable.git" LINUX_BRANCH=$(get_linux_version $LOCATION/Makefile) LINUX_BRANCH="v$LINUX_BRANCH"