From 28c43a89ae13b648dd37269d288fbbea2550faa8 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sat, 7 Jan 2017 03:15:18 +0900 Subject: [PATCH] Fix comment on SCSI commands [0] is service action (unless this is intentional). Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- engines/sg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.25.1