Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Jan 19, 2022

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit ef37053efdfb8c3b8b6deef43c0969753e6adb44:

init: do not create lat logs when not needed (2022-01-17 07:21:58 -0700)

are available in the Git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 71efbed61dfb157dfa7fe550f500b53f9731e1cb:

docs: documentation for sg WRITE STREAM(16) (2022-01-18 06:37:39 -0700)

----------------------------------------------------------------
Niklas Cassel (2):
stat: remove duplicated code in show_mixed_ddir_status()
stat: move unified=both mixed allocation and calculation to new helper

Vincent Fu (6):
sg: add support for VERIFY command using write modes
sg: add support for WRITE SAME(16) commands with NDOB flag set
sg: improve sg_write_mode option names
sg: add support for WRITE STREAM(16) commands
sg: allow fio to open and close streams for WRITE STREAM(16) commands
docs: documentation for sg WRITE STREAM(16)

 HOWTO                           |  36 +++++-
 engines/sg.c                    | 181 +++++++++++++++++++++++++++++--
 examples/sg_verify-fail.fio     |  48 ++++++++
 examples/sg_verify.fio          |  57 ++++++++++
 examples/sg_write_same_ndob.fio |  44 ++++++++
 fio.1                           |  47 +++++++-
 stat.c                          | 235 ++++++++--------------------------------
 7 files changed, 441 insertions(+), 207 deletions(-)
 create mode 100644 examples/sg_verify-fail.fio
 create mode 100644 examples/sg_verify.fio
 create mode 100644 examples/sg_write_same_ndob.fio

---

Diff of recent changes:

HOWTO +34 -2
index 2956e50d..f9e7c857 100644
@@ -2496,11 +2496,13 @@ with the caveat that when used on the command line, they must come after the
 
 	**write**
 		This is the default where write opcodes are issued as usual.
-	**verify**
+	**write_and_verify**
 		Issue WRITE AND VERIFY commands. The BYTCHK bit is set to 0. This
 		directs the device to carry out a medium verification with no data
 		comparison. The writefua option is ignored with this selection.
-	**same**
+	**verify**
+		This option is deprecated. Use write_and_verify instead.
+	**write_same**
 		Issue WRITE SAME commands. This transfers a single block to the device
 		and writes this same block of data to a contiguous sequence of LBAs
 		beginning at the specified offset. fio's block size parameter specifies
@@ -2511,6 +2513,36 @@ with the caveat that when used on the command line, they must come after the
 		for each command but only the first 512 bytes will be used and
 		transferred to the device. The writefua option is ignored with this
 		selection.
+	**same**
+		This option is deprecated. Use write_same instead.
+	**write_same_ndob**
+		Issue WRITE SAME(16) commands as above but with the No Data Output
+		Buffer (NDOB) bit set. No data will be transferred to the device with
+		this bit set. Data written will be a pre-determined pattern such as
+		all zeroes.
+	**write_stream**
+		Issue WRITE STREAM(16) commands. Use the **stream_id** option to specify
+		the stream identifier.
+	**verify_bytchk_00**
+		Issue VERIFY commands with BYTCHK set to 00. This directs the
+		device to carry out a medium verification with no data comparison.
+	**verify_bytchk_01**
+		Issue VERIFY commands with BYTCHK set to 01. This directs the device to
+		compare the data on the device with the data transferred to the device.
+	**verify_bytchk_11**
+		Issue VERIFY commands with BYTCHK set to 11. This transfers a
+		single block to the device and compares the contents of this block with the
+		data on the device beginning at the specified offset. fio's block size
+		parameter specifies the total amount of data compared with this command.
+		However, only one block (sector) worth of data is transferred to the device.
+		This is similar to the WRITE SAME command except that data is compared instead
+		of written.
+
+.. option:: stream_id=int : [sg]
+
+	Set the stream identifier for WRITE STREAM commands. If this is set to 0 (which is not
+	a valid stream identifier) fio will open a stream and then close it when done. Default
+	is 0.
 
 .. option:: hipri : [sg]
 
engines/sg.c +172 -9

260 lines not on this page · raw message

examples/sg_verify-fail.fio new file +48 -0

48 lines not on this page · raw message

examples/sg_verify.fio new file +57 -0

57 lines not on this page · raw message

examples/sg_write_same_ndob.fio new file +44 -0

44 lines not on this page · raw message

fio.1 +42 -5

70 lines not on this page · raw message

stat.c +44 -191

277 lines not on this page · raw message