Fix comment on SCSI commands
authorTomohiro Kusumi <tkusumi@tuxera.com>
Fri, 6 Jan 2017 18:15:18 +0000 (03:15 +0900)
committerJens Axboe <axboe@fb.com>
Fri, 6 Jan 2017 18:26:04 +0000 (11:26 -0700)
[0] is service action (unless this is intentional).

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/sg.c

index 001193df5970566a97b7b4634d7a15134e663a14..2ad339412908ab8f83d4a2d5ad60e6234405308c 100644 (file)
@@ -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);