Skip to content

Commit ea34d6a

Browse files
jtpittman195kawasaki
authored andcommitted
block/042: check sysfs values prior to running
In testing some older kernels recently, block/042 has failed due to dma_alignment and virt_boundary_mask not being present. Running block/042 +cat: '.../queue/dma_alignment': No such file or directory +cat: '.../queue/virt_boundary_mask': No such file or directory +dio-offsets: test_dma_aligned: failed to write buf: Invalid argument To ensure we skip if this is the case, check all sysfs values prior to run. Also, change the spaces to tabs before _require_test_dev_sysfs for consistency with the rest of blktests. Signed-off-by: John Pittman <[email protected]> Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
1 parent 98176bf commit ea34d6a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/block/042

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ DESCRIPTION="Test unusual direct-io offsets"
1111
QUICK=1
1212

1313
device_requires() {
14-
_require_test_dev_sysfs
14+
_require_test_dev_sysfs "queue/max_segments" "queue/dma_alignment" \
15+
"queue/virt_boundary_mask" "queue/logical_block_size" \
16+
"queue/max_sectors_kb"
1517
}
1618

1719
test_device() {

0 commit comments

Comments
 (0)