+# this test requires the device mapper error target
+#
+_require_dmerror()
+{
+_require_command "$DMSETUP_PROG" dmsetup
+
+$DMSETUP_PROG targets | grep error >/dev/null 2>&1
+if [ $? -eq 0 ]
+then
+ :
+else
+ _notrun "This test requires dm error support"
+fi
On Wed, Jul 22, 2015 at 11:14 AM, Anand Jain wrote:
> From: Anand Jain
>
> Controlled EIO from the device is achieved using the dm device.
> Helper functions are at common/dmerror.
>
> Broadly steps will include calling _init_dmerror().
> _init_dmerror() will use SCRATCH_DEV to create dm linear d
From: Anand Jain
Controlled EIO from the device is achieved using the dm device.
Helper functions are at common/dmerror.
Broadly steps will include calling _init_dmerror().
_init_dmerror() will use SCRATCH_DEV to create dm linear device and assign
DMERROR_DEV to /dev/mapper/error-test.
When tes
From: Anand Jain
Controlled EIO from the device is achieved using the dm device.
Helper functions are at common/dmerror.
Broadly steps will include calling _init_dmerror().
_init_dmerror() will use SCRATCH_DEV to create dm linear device and assign
DMERROR_DEV to /dev/mapper/error-test.
When tes