mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common/dmerror: fix mount option issues
Calling _mount doesn't work when we want to add mount options such as realtime devices. Fix it by calling _scratch_options first then mount with $SCRATCH_OPTIONS. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
f9261d3646
commit
27516d43f4
+3
-6
@@ -41,14 +41,11 @@ _dmerror_init()
|
||||
DMERROR_TABLE="0 $blk_dev_size error $dm_backing_dev 0"
|
||||
}
|
||||
|
||||
_dmerror_mount_options()
|
||||
{
|
||||
echo `_common_dev_mount_options $*` $DMERROR_DEV $SCRATCH_MNT
|
||||
}
|
||||
|
||||
_dmerror_mount()
|
||||
{
|
||||
_mount -t $FSTYP `_dmerror_mount_options $*`
|
||||
_scratch_options mount
|
||||
$MOUNT_PROG -t $FSTYP `_common_dev_mount_options $*` $SCRATCH_OPTIONS \
|
||||
$DMERROR_DEV $SCRATCH_MNT
|
||||
}
|
||||
|
||||
_dmerror_unmount()
|
||||
|
||||
Reference in New Issue
Block a user