Re: [PATCH v4 1/3] xfstests: btrfs: add functions to create dm-error device

2015-08-13 Thread Anand Jain
+# 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

Re: [PATCH v4 1/3] xfstests: btrfs: add functions to create dm-error device

2015-08-07 Thread Filipe David Manana
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

[PATCH v4 1/3] xfstests: btrfs: add functions to create dm-error device

2015-07-22 Thread Anand Jain
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

[PATCH v4 1/3] xfstests: btrfs: add functions to create dm-error device

2015-07-22 Thread Anand Jain
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