Commit | Line | Data |
---|---|---|
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] | |
25 | filename=/dev/sdb | |
26 | buffer_pattern=0x01 | |
27 | ioengine=sg | |
28 | rw=write | |
29 | bs=512 | |
30 | number_ios=20 | |
31 | stonewall | |
32 | ||
33 | [precon] | |
34 | ||
35 | [verify00] | |
36 | sg_write_mode=verify_bytchk_00 | |
37 | ||
38 | [verify01] | |
39 | sg_write_mode=verify_bytchk_01 | |
40 | ||
41 | [verify01-two_ios] | |
42 | sg_write_mode=verify_bytchk_01 | |
43 | bs=5120 | |
44 | number_ios=2 | |
45 | ||
46 | [verify11] | |
47 | sg_write_mode=verify_bytchk_11 | |
48 | ||
49 | [verify11-five_ios] | |
50 | sg_write_mode=verify_bytchk_11 | |
51 | bs=2048 | |
52 | number_ios=5 | |
53 | ||
54 | [verify11-one_ios] | |
55 | sg_write_mode=verify_bytchk_11 | |
56 | bs=10240 | |
57 | number_ios=1 |