tmpfs doesn't require a device and the source argument of the mount
is ignored. If {TEST|SCRATCH}_DEV is not given then set them to
proper strings.
[Eryu: don't require SCRATCH_DEV too]
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
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
export RESULT_BASE="$here/results/"
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.
MC=""
[ -z "$EMAIL" ] && MC="$MC EMAIL"