As per commit
264e5358e2c2 ("tmpfs: don't require {TEST|SCRATCH}_DEV"),
tmpfs doesn't need TEST or SCRATCH devices due to being a RAM-based
filesystem.
Fix the check by comparing the content of the variable TEST_DEV, instead
of comparing with the string TEST_DEV. Same for SCRATCH_DEV.
Fixes: 264e5358e2c2 ("tmpfs: don't require {TEST|SCRATCH}_DEV")
Signed-off-by: André Almeida <andrealmeid@igalia.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
fi
if [ "$FSTYP" == "tmpfs" ]; then
- if [ -z "TEST_DEV" ]; then
+ if [ -z "$TEST_DEV" ]; then
export TEST_DEV=tmpfs_test
fi
- if [ -z "SCRATCH_DEV" ]; then
+ if [ -z "$SCRATCH_DEV" ]; then
export TEST_DEV=tmpfs_scratch
fi
fi