export DUMP_PROG="$(type -P dump)"
export RESTORE_PROG="$(type -P restore)"
export LVM_PROG="$(type -P lvm)"
+export LSATTR_PROG="$(type -P lsattr)"
export CHATTR_PROG="$(type -P chattr)"
export DEBUGFS_PROG="$(type -P debugfs)"
export UUIDGEN_PROG="$(type -P uuidgen)"
fi
case "$FSTYP" in
- 9p)
+ 9p|tmpfs)
# 9p mount tags are just plain strings, so anything is allowed
+ # tmpfs doesn't use mount source, ignore
;;
overlay)
if [ ! -d "$dev" ]; then
# set default RESULT_BASE
if [ -z "$RESULT_BASE" ]; then
export RESULT_BASE="$here/results/"
+ mkdir -p ${RESULT_BASE}
+ if [ ! -d ${RESULT_BASE} ]; then
+ echo "failed to create results directory $RESULT_BASE"
+ exit 1
+ fi
+ fi
+
+ if [ "$FSTYP" == "tmpfs" ]; then
+ if [ -z "TEST_DEV" ]; then
+ export TEST_DEV=tmpfs_test
+ fi
+ if [ -z "SCRATCH_DEV" ]; then
+ export TEST_DEV=tmpfs_scratch
+ fi
fi
# Mandatory Config values.