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>
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()