From b38db9e9d6d8e4141045282c4299fdf518e15d09 Mon Sep 17 00:00:00 2001 From: darkstar Date: Wed, 3 Oct 2018 21:20:27 +0200 Subject: [PATCH] SCSI: Fix for "changeable" mode pages This is supposed to be a bit field of the fields that can be changed by MODE SELECT. Since we don't support changing mode pages (yet), we should report that fact correctly --- src/devices/scsi/scsi_disk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/devices/scsi/scsi_disk.c b/src/devices/scsi/scsi_disk.c index c1ac817..b9e5e5b 100644 --- a/src/devices/scsi/scsi_disk.c +++ b/src/devices/scsi/scsi_disk.c @@ -177,11 +177,11 @@ static const mode_sense_pages_t scsi_hd_mode_sense_pages_default = { }; static const mode_sense_pages_t scsi_hd_mode_sense_pages_changeable = { - { [0x03] = { 0x03, 0x16, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + { [0x03] = { 0x03, 0x16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, - [0x04] = { 0x04, 0x16, 0, 0x10, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10, 0, 0, 0 + [0x04] = { 0x04, 0x16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, - [0x30] = { 0xB0, 0x16, '8', '6', 'B', 'o', 'x', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' + [0x30] = { 0xB0, 0x16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } } };