[PATCH blktests 0/6] fix failures with bio based device-mapper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When bio based device-mappers are set to TEST_DEVS, the test cases block/004,
block/005, zbd/005 and zbd/006 fail (or silently skipped) on kernel version
v6.5-rcX. This happens because the kernel no longer provides the sysfs
attribute queue/scheduler for bio based block devices, and the test cases sets
scheduler through the sysfs attribute and fail.

This series address the failures. The first two patches are preparations. Next
two patches introduce new helper functions: one to set scheduler to destination
devices of bio based device-mapper. The other to check queue/scheduler attribute
existence. The last two patches fix the test cases by calling the new helper
functions.

Shin'ichiro Kawasaki (6):
  check, common/rc: save sysfs attribute path
  common/dm: add script file for device-mapper functions
  common/{rc,dm}: introduce functions to set scheduler of dm
    destinations
  common/rc: introduce _require_test_dev_sysfs
  block/004, zbd/{005,006}: call _test_dev_set_scheduler
  block/005: require queue/scheduler sysfs attribute

 check           | 10 +++++-----
 common/dm       | 44 ++++++++++++++++++++++++++++++++++++++++++++
 common/rc       | 29 ++++++++++++++++++++++++-----
 tests/block/004 |  2 +-
 tests/block/005 |  4 ++++
 tests/zbd/005   |  2 +-
 tests/zbd/006   |  2 +-
 tests/zbd/rc    | 19 +------------------
 8 files changed, 81 insertions(+), 31 deletions(-)
 create mode 100644 common/dm

-- 
2.40.1




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux