sleep 0.25
$@
ret=$?
- if test $ret -ne 0 ; then
+ if test $ret -ne 0 && test "$1" != 'lsof'; then
echo "$0: $lowertype and $type failed"
+ echo "$0: exit code $ret"
exit $ret
fi
}
# cleanup
case "$type" in
wrapfs )
+ runcmd lsof $TMP_DIR
runcmd umount $TMP_DIR
runcmd rmmod wrapfs
;;
#read n
case "$lowertype" in
ext2 | ext3 | ext4 | reiserfs | xfs )
+ runcmd lsof $SCRATCH_DIR
runcmd umount $SCRATCH_DIR
;;
tmpfs )
+ runcmd lsof $SCRATCH_DIR
runcmd umount $SCRATCH_DIR
runcmd swapoff $SCRATCH_DEV
;;
nfs )
+ runcmd lsof $SCRATCH_DIR
runcmd umount $SCRATCH_DIR
runcmd exportfs -u localhost:$LOWER_DIR
runcmd umount $LOWER_DIR