engines/libblkio: Add option libblkio_wait_mode
[fio.git] / examples / sg_verify-fail.fio
CommitLineData
e8ab121c
VF
1#
2# **********************************
3# * !!THIS IS A DESTRUCTIVE TEST!! *
4# * IF NOT CHANGED THIS TEST WILL *
5# * DESTROY DATA ON /dev/sdb *
6# **********************************
7#
8# Test SCSI VERIFY commands issued via the sg ioengine
9# The jobs with fail in the name should produce errors
10#
11# job description
12# precon precondition the device by writing with a known
13# pattern
14# verify01 verify each block one at a time by comparing to known
15# pattern
16# verify01-fail verifying one too many blocks should produce a failure
17# verify11-one_ios verify all 20 blocks by sending only 512 bytes
18# verify11-fail verifying beyond the preconditioned region should
19# produce a failure
20
21[global]
22filename=/dev/sdb
23buffer_pattern=0x01
24ioengine=sg
25rw=write
26bs=512
27number_ios=20
28stonewall
29
30[precon]
31
32[verify01]
33sg_write_mode=verify_bytchk_01
34number_ios=20
35
36[verify01-fail]
37sg_write_mode=verify_bytchk_01
38number_ios=21
39
40[verify11-one_ios]
41sg_write_mode=verify_bytchk_11
42number_ios=1
43bs=10240
44
45[verify11-fail]
46sg_write_mode=verify_bytchk_11
47number_ios=1
48bs=10752