Closed rdmark closed 1 year ago
The capacity part of the string is generated in https://github.com/PiSCSI/piscsi/blob/8dd5071122b31fd0418f67c3816b4f086bbe88c2/cpp/devices/scsihd.cpp#L34
What seems to be the problem is that the 10 GB conditional checks against 1 TB (1'099'511'627'776 bytes). I think the correct check should be 10,737,418,240 bytes.
I think the sweet spot is to display MiB unit up to 9999MiB, then switch to GB from 10485760000 bytes onwards (10,000MiB).
This issue would still occur with >9TB image files, but as per Eric: 2tb is the biggest scsi-2 32bit lba can address
We generate too long a generic INQUIRY Product string for image sizes larger than 9999MiB