RASCSI/cpp/devices
Klaus Kämpf b7f65d33e2
Honor sector size change via ModeSelect6 in scsicd (#1406)
* Make ModeSelect() non-const

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>

* Implement ModeSelect for scsicd

and honor sector size setting.

DEC's VMS can't handle 2k sector sizes and uses ModeSelect6 to set the
sector size to 512 bytes.

Fixes #1397

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>

* Test sector size setting via ModeSelect in SCSICD

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>

* Re-calculate total blocks when sector size changes

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>

* Reset CD data tracks after sector size change

The track calculation is based on sector size and must be reset after
change of sector size.

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>

* resize cache after change of sector size

The disk cache is based on sector size and must be resized when the
sector size changes.

Disk::ResizeCache needs a `raw` parameter, make this value accessible
from the current cache.

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>

* Make GetRawMode const

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>

---------

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
2024-01-10 06:36:24 +09:00
..
interfaces Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
cd_track.cpp Rebrand project to PiSCSI (#1016) 2022-12-05 09:58:23 -08:00
cd_track.h Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
cfilesystem.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
cfilesystem.h Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
ctapdriver.cpp Fix daynaport emulation regression (#1306) (#1318) 2023-11-09 00:39:00 +01:00
ctapdriver.h Move default device parameters from DeviceFactory to the respective devices #1257 (#1259) 2023-10-30 11:24:18 +01:00
device_factory.cpp Move sector sizes lists from DeviceFactory to the respective devices (#1323) 2023-11-14 15:32:46 +01:00
device_factory.h Move sector sizes lists from DeviceFactory to the respective devices (#1323) 2023-11-14 15:32:46 +01:00
device_logger.cpp Fix missing logging for a LUN when the LUN is explicitly specified (#1379) 2023-11-26 13:25:54 +09:00
device_logger.h Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
device.cpp Move default device parameters from DeviceFactory to the respective devices #1257 (#1259) 2023-10-30 11:24:18 +01:00
device.h Move default device parameters from DeviceFactory to the respective devices #1257 (#1259) 2023-10-30 11:24:18 +01:00
disk_cache.cpp Add statistics and make scsictl accept generic key/value parameters (#1237/#1238) (#1262) 2023-10-30 13:32:45 +01:00
disk_cache.h Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
disk_track.cpp Add statistics and make scsictl accept generic key/value parameters (#1237/#1238) (#1262) 2023-10-30 13:32:45 +01:00
disk_track.h Add statistics and make scsictl accept generic key/value parameters (#1237/#1238) (#1262) 2023-10-30 13:32:45 +01:00
disk.cpp Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
disk.h Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
host_services.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
host_services.h Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
mode_page_device.cpp Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
mode_page_device.h Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
primary_device.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
primary_device.h Add statistics and make scsictl accept generic key/value parameters (#1237/#1238) (#1262) 2023-10-30 13:32:45 +01:00
scsi_command_util.cpp Multiple fixes for ModeSelect (#1405) 2024-01-07 15:06:35 +09:00
scsi_command_util.h Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
scsi_daynaport.cpp NetBSD compatibility: Increase daynaport minimum packet size to 128 bytes (#1334) (#1335) 2023-11-14 16:13:14 +01:00
scsi_daynaport.h NetBSD compatibility: Increase daynaport minimum packet size to 128 bytes (#1334) (#1335) 2023-11-14 16:13:14 +01:00
scsi_host_bridge.cpp Move default device parameters from DeviceFactory to the respective devices #1257 (#1259) 2023-10-30 11:24:18 +01:00
scsi_host_bridge.h Move default device parameters from DeviceFactory to the respective devices #1257 (#1259) 2023-10-30 11:24:18 +01:00
scsi_printer.cpp Fix error count calculation (#1356) 2023-11-14 15:16:23 +01:00
scsi_printer.h Add statistics and make scsictl accept generic key/value parameters (#1237/#1238) (#1262) 2023-10-30 13:32:45 +01:00
scsicd.cpp Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
scsicd.h Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
scsihd_nec.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
scsihd_nec.h Move sector sizes lists from DeviceFactory to the respective devices (#1323) 2023-11-14 15:32:46 +01:00
scsihd.cpp Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
scsihd.h Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
scsimo.cpp Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
scsimo.h Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
storage_device.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
storage_device.h Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00