RASCSI/cpp/test
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
..
abstract_controller_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
bus_test.cpp Rebrand project to PiSCSI (#1016) 2022-12-05 09:58:23 -08:00
command_context_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
controller_manager_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
ctapdriver_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
device_factory_test.cpp Move sector sizes lists from DeviceFactory to the respective devices (#1323) 2023-11-14 15:32:46 +01:00
device_test.cpp Move default device parameters from DeviceFactory to the respective devices #1257 (#1259) 2023-10-30 11:24:18 +01:00
disk_test.cpp Move sector sizes lists from DeviceFactory to the respective devices (#1323) 2023-11-14 15:32:46 +01:00
gpiobus_raspberry_test.cpp Use standard C++ timer for long timeouts (#1327), remove unused code (#1328) 2023-11-14 16:03:25 +01:00
host_services_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
linux_os_stubs.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
linux_os_stubs.h Rebrand project to PiSCSI (#1016) 2022-12-05 09:58:23 -08:00
localizer_test.cpp Rebrand project to PiSCSI (#1016) 2022-12-05 09:58:23 -08:00
mocks.h Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
mode_page_device_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
network_util_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
phase_handler_test.cpp Fix SonarQube issues (#1276) 2023-11-01 12:53:05 +01:00
piscsi_exceptions_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
piscsi_executor_test.cpp Move sector sizes lists from DeviceFactory to the respective devices (#1323) 2023-11-14 15:32:46 +01:00
piscsi_image_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
piscsi_response_test.cpp Improve how commands are internally executed (#1247) 2023-10-30 13:57:46 +01:00
piscsi_service_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
piscsi_util_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
primary_device_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
protobuf_util_test.cpp scsictl shall accept generic key/value pairs for options that take parameters (#1240) (#1274) 2023-10-31 09:02:28 +01:00
scsi_command_util_test.cpp Multiple fixes for ModeSelect (#1405) 2024-01-07 15:06:35 +09:00
scsi_controller_test.cpp Fix SonarQube issues (#1276) 2023-11-01 12:53:05 +01:00
scsi_daynaport_test.cpp Move default device parameters from DeviceFactory to the respective devices #1257 (#1259) 2023-10-30 11:24:18 +01:00
scsi_host_bridge_test.cpp Move default device parameters from DeviceFactory to the respective devices #1257 (#1259) 2023-10-30 11:24:18 +01:00
scsi_printer_test.cpp Move default device parameters from DeviceFactory to the respective devices #1257 (#1259) 2023-10-30 11:24:18 +01:00
scsicd_test.cpp Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
scsictl_commands_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
scsictl_display_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
scsictl_parser_test.cpp Rebrand project to PiSCSI (#1016) 2022-12-05 09:58:23 -08:00
scsidump_test.cpp Add options to only run INQUIRY and to scan the bus to scsidump (#1092) (#1261) 2023-10-30 11:34:07 +01:00
scsihd_nec_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
scsihd_test.cpp Move sector sizes lists from DeviceFactory to the respective devices (#1323) 2023-11-14 15:32:46 +01:00
scsimo_test.cpp Move sector sizes lists from DeviceFactory to the respective devices (#1323) 2023-11-14 15:32:46 +01:00
storage_device_test.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
test_setup.cpp Issues 1179 and 1182 (#1232) 2023-10-15 08:38:15 +02:00
test_shared.cpp Improve how commands are internally executed (#1247) 2023-10-30 13:57:46 +01:00
test_shared.h Add options to only run INQUIRY and to scan the bus to scsidump (#1092) (#1261) 2023-10-30 11:34:07 +01:00