RASCSI/cpp
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
..
controllers Fix missing logging for a LUN when the LUN is explicitly specified (#1379) 2023-11-26 13:25:54 +09:00
devices Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
hal Improve BSD compile-time compatibility (#1342) 2023-11-16 12:37:50 +01:00
piscsi Replace system timer by C++ standard time for timeout of 3 s (#1361) 2023-11-16 12:40:10 +01:00
scsictl Revert "scsictl: Create files with binary/JSON or text format protobuf data (#1369)" 2023-11-27 09:11:43 +09:00
scsidump Fix SonarQube issues (#1276) 2023-11-01 12:53:05 +01:00
scsiloop Re-add CONNECT_TYPE_CONNECT_TYPE_AIBOM and CONNECT_TYPE_GAMERNIUM (#1315) (#1317) 2023-11-08 13:27:49 +01:00
scsimon Move top-level .cpp files into their respective folders (#1249) 2023-10-16 18:27:18 +02:00
shared Update version for next development version 2023-11-11 23:17:47 +09:00
test Honor sector size change via ModeSelect6 in scsicd (#1406) 2024-01-10 06:36:24 +09:00
.gitignore Add initial IDE setup (#1326) 2023-11-14 15:13:45 +01:00
Makefile Remove fullspec/standard sub-folder (#1324) 2023-11-14 15:51:36 +01:00
piscsi_interface.proto Add statistics and make scsictl accept generic key/value parameters (#1237/#1238) (#1262) 2023-10-30 13:32:45 +01:00