mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/504: Add scratch_mount before checking for xfs_scrub unicode support
We may not detect the error `Inappropriate ioctl for device`, while running `$XFS_IO_PROG -c "scrub probe" "$mountpoint"`, if scratch device is not mounted before invoking _check_xfs_scrub_does_unicode(). So do _scratch_mount before checking for xfs_scrub support. Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
a9e50808a8
commit
3be0233fbb
@@ -21,8 +21,11 @@ _require_xfs_io_command 'label'
|
||||
|
||||
echo "Silence is golden."
|
||||
|
||||
_scratch_mkfs > /dev/null
|
||||
_scratch_mount
|
||||
want_scrub=
|
||||
_check_xfs_scrub_does_unicode "$SCRATCH_MNT" "$SCRATCH_DEV" && want_scrub=yes
|
||||
_scratch_unmount
|
||||
|
||||
filter_scrub() {
|
||||
grep 'Unicode' | sed -e 's/^.*Duplicate/Duplicate/g'
|
||||
|
||||
Reference in New Issue
Block a user