From: Tomohiro Kusumi Date: Fri, 6 Jan 2017 18:15:18 +0000 (+0900) Subject: Fix comment on SCSI commands X-Git-Tag: fio-2.17~17 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=28c43a89ae13b648dd37269d288fbbea2550faa8 Fix comment on SCSI commands [0] is service action (unless this is intentional). Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/engines/sg.c b/engines/sg.c index 001193df..2ad33941 100644 --- a/engines/sg.c +++ b/engines/sg.c @@ -425,8 +425,8 @@ static int fio_sgio_read_capacity(struct thread_data *td, unsigned int *bs, */ if (*max_lba == MAX_10B_LBA) { hdr.cmd_len = 16; - hdr.cmdp[0] = 0x9e; // Read Capacity(16) - hdr.cmdp[1] = 0x10; // service action + hdr.cmdp[0] = 0x9e; // service action + hdr.cmdp[1] = 0x10; // Read Capacity(16) hdr.cmdp[10] = (unsigned char) ((sizeof(buf) >> 24) & 0xff); hdr.cmdp[11] = (unsigned char) ((sizeof(buf) >> 16) & 0xff); hdr.cmdp[12] = (unsigned char) ((sizeof(buf) >> 8) & 0xff);