Merge branch 'directory-operation' of https://github.com/friendy-su/fio
[fio.git] / examples / sg_verify.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# All of the jobs below should complete without error
10#
11# job description
12# precon precondition the device by writing with a known
13# pattern
14# verify00 verify written data on medium only
15# verify01 verify each block one at a time by comparing to known
16# pattern
17# verify01-two_ios verify same data but with only two VERIFY operations
18# verify11 verify each block one at a time
19# verify11-five_ios verify data with five IOs, four blocks at a time,
20# sending 512 bytes for each IO
21# verify11-one_ios verify all 20 blocks by sending only 512 bytes
22#
23
24[global]
25filename=/dev/sdb
26buffer_pattern=0x01
27ioengine=sg
28rw=write
29bs=512
30number_ios=20
31stonewall
32
33[precon]
34
35[verify00]
36sg_write_mode=verify_bytchk_00
37
38[verify01]
39sg_write_mode=verify_bytchk_01
40
41[verify01-two_ios]
42sg_write_mode=verify_bytchk_01
43bs=5120
44number_ios=2
45
46[verify11]
47sg_write_mode=verify_bytchk_11
48
49[verify11-five_ios]
50sg_write_mode=verify_bytchk_11
51bs=2048
52number_ios=5
53
54[verify11-one_ios]
55sg_write_mode=verify_bytchk_11
56bs=10240
57number_ios=1