From 3740cfc89440001e393dee1a6abae41ec89bec27 Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Thu, 26 Jul 2018 09:27:21 -0700 Subject: [PATCH] docs: update HOWTO and manpage for sg trim support Also fix HOWTO sg_write_mode formatting --- HOWTO | 9 ++++++--- fio.1 | 7 ++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/HOWTO b/HOWTO index 70eed280..804d93e4 100644 --- a/HOWTO +++ b/HOWTO @@ -991,13 +991,15 @@ I/O type **write** Sequential writes. **trim** - Sequential trims (Linux block devices only). + Sequential trims (Linux block devices and SCSI + character devices only). **randread** Random reads. **randwrite** Random writes. **randtrim** - Random trims (Linux block devices only). + Random trims (Linux block devices and SCSI + character devices only). **rw,readwrite** Sequential mixed reads and writes. **randrw** @@ -1748,7 +1750,7 @@ I/O engine ioctl, or if the target is an sg character device we use :manpage:`read(2)` and :manpage:`write(2)` for asynchronous I/O. Requires :option:`filename` option to specify either block or - character devices. + character devices. This engine supports trim operations. The sg engine includes engine specific options. **null** @@ -2082,6 +2084,7 @@ with the caveat that when used on the command line, they must come after the the force unit access (fua) flag. Default is 0. .. option:: sg_write_mode=str : [sg] + Specify the type of write commands to issue. This option can take three values: **write** diff --git a/fio.1 b/fio.1 index 6d2eba67..a446aba5 100644 --- a/fio.1 +++ b/fio.1 @@ -757,7 +757,7 @@ Sequential reads. Sequential writes. .TP .B trim -Sequential trims (Linux block devices only). +Sequential trims (Linux block devices and SCSI character devices only). .TP .B randread Random reads. @@ -766,7 +766,7 @@ Random reads. Random writes. .TP .B randtrim -Random trims (Linux block devices only). +Random trims (Linux block devices and SCSI character devices only). .TP .B rw,readwrite Sequential mixed reads and writes. @@ -1524,7 +1524,8 @@ SCSI generic sg v3 I/O. May either be synchronous using the SG_IO ioctl, or if the target is an sg character device we use \fBread\fR\|(2) and \fBwrite\fR\|(2) for asynchronous I/O. Requires \fBfilename\fR option to specify either block or -character devices. The sg engine includes engine specific options. +character devices. This engine supports trim operations. The +sg engine includes engine specific options. .TP .B null Doesn't transfer any data, just pretends to. This is mainly used to -- 2.25.1