File: sg_write_same_ndob.fio

package info (click to toggle)
fio 3.41-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,012 kB
  • sloc: ansic: 82,290; python: 9,862; sh: 6,067; makefile: 813; yacc: 204; lex: 184
file content (44 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# **********************************
# * !!THIS IS A DESTRUCTIVE TEST!! *
# * IF NOT CHANGED THIS TEST WILL  *
# * DESTROY DATA ON /dev/sdb       *
# **********************************
#
# Test WRITE SAME commands with the NDOB flag set
# issued via the sg ioengine
# All of the jobs below should complete without error
# except the last one
#
# job			description
# precon		Precondition the device by writing 20 blocks with a
# 			known pattern
# write_same_ndob	Write 19 sectors of all zeroes with the NDOB flag set
# verify-pass		Verify 19 blocks of all zeroes
# verify-fail		Verify 20 blocks of all zeroes. This should fail.
#

[global]
filename=/dev/sdb
buffer_pattern=0x01
ioengine=sg
rw=write
bs=512
stonewall

[precon]
number_ios=20

[write_same_ndob]
sg_write_mode=write_same_ndob
number_ios=19

[verify-pass]
sg_write_mode=verify_bytchk_01
buffer_pattern=0x00
number_ios=19

[verify-fail]
sg_write_mode=verify_bytchk_01
buffer_pattern=0x00
number_ios=20