_check_scratch_fs takes an optional device name, but no optional
arguments. Call e2fsck directly for this extN-specific test instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anand Jain <asj@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
res=$?
if [ "${res}" -eq 0 ]; then
echo "++ allegedly fixed, reverify" >> "${FSCK_LOG}"
- _check_scratch_fs -n >> "${FSCK_LOG}" 2>&1
+ e2fsck -n "${SCRATCH_DEV}" >> "${FSCK_LOG}" 2>&1
res=$?
fi
echo "++ fsck returns ${res}" >> "${FSCK_LOG}"