RASCSI/cpp/devices
Klaus Kämpf 28a43b3390 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-05-01 16:15:43 +09:00
..
interfaces
cd_track.cpp
cd_track.h
cfilesystem.cpp
cfilesystem.h
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) 2024-05-01 16:15:42 +09:00
device_factory.h Move sector sizes lists from DeviceFactory to the respective devices (#1323) 2024-05-01 16:15:42 +09:00
device_logger.cpp Fix missing logging for a LUN when the LUN is explicitly specified (#1379) 2024-05-01 16:15:43 +09:00
device_logger.h
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-05-01 16:15:43 +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-05-01 16:15:43 +09:00
disk.h Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-05-01 16:15:43 +09:00
host_services.cpp
host_services.h
mode_page_device.cpp Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-05-01 16:15:43 +09:00
mode_page_device.h Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-05-01 16:15:43 +09:00
primary_device.cpp
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-05-01 16:15:43 +09:00
scsi_command_util.h
scsi_daynaport.cpp NetBSD compatibility: Increase daynaport minimum packet size to 128 bytes (#1334) (#1335) 2024-05-01 16:15:42 +09:00
scsi_daynaport.h NetBSD compatibility: Increase daynaport minimum packet size to 128 bytes (#1334) (#1335) 2024-05-01 16:15:42 +09: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) 2024-05-01 16:15:42 +09: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-05-01 16:15:43 +09:00
scsicd.h Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-05-01 16:15:43 +09:00
scsihd_nec.cpp
scsihd_nec.h Move sector sizes lists from DeviceFactory to the respective devices (#1323) 2024-05-01 16:15:42 +09:00
scsihd.cpp Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-05-01 16:15:43 +09:00
scsihd.h Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-05-01 16:15:43 +09:00
scsimo.cpp Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-05-01 16:15:43 +09:00
scsimo.h Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-05-01 16:15:43 +09:00
storage_device.cpp
storage_device.h