Commit | Line | Data |
---|---|---|
91e13ff5 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 WRITE SAME commands with the NDOB flag set | |
9 | # issued via the sg ioengine | |
10 | # All of the jobs below should complete without error | |
11 | # except the last one | |
12 | # | |
13 | # job description | |
14 | # precon Precondition the device by writing 20 blocks with a | |
15 | # known pattern | |
16 | # write_same_ndob Write 19 sectors of all zeroes with the NDOB flag set | |
17 | # verify-pass Verify 19 blocks of all zeroes | |
18 | # verify-fail Verify 20 blocks of all zeroes. This should fail. | |
19 | # | |
20 | ||
21 | [global] | |
22 | filename=/dev/sdb | |
23 | buffer_pattern=0x01 | |
24 | ioengine=sg | |
25 | rw=write | |
26 | bs=512 | |
27 | stonewall | |
28 | ||
29 | [precon] | |
30 | number_ios=20 | |
31 | ||
32 | [write_same_ndob] | |
33 | sg_write_mode=write_same_ndob | |
34 | number_ios=19 | |
35 | ||
36 | [verify-pass] | |
37 | sg_write_mode=verify_bytchk_01 | |
38 | buffer_pattern=0x00 | |
39 | number_ios=19 | |
40 | ||
41 | [verify-fail] | |
42 | sg_write_mode=verify_bytchk_01 | |
43 | buffer_pattern=0x00 | |
44 | number_ios=20 |