Translating a SCSI device ID to SCSI::x
Jon Abbott (1421) 2651 posts |
SCSIFS has a function to convert a SCSI Device ID to a drive number in the form of MapDevToDrv but it’s not publicly exposed as far as I can tell. How can I translate a device ID to a FileCore drive number, when SCSIFS_Partitions 1 isn’t available? |
Steffen Huber (91) 1953 posts |
I think the answer is “you can’t”. FS stuff on RISC OS. You have to love that mess. |
Bryan (8467) 468 posts |
Would the answer to this question (if, possible) solve the issue that when we have two or more SCSI ‘discs’ on a Pi system, we can not reliably specify which drive the system is going to boot from? |
Jon Abbott (1421) 2651 posts |
I cheated and am scanning SCSIFS for MapDevToDrv and am calling it directly :| – desperate times
Quite. I dislike the way SCSI is used as a virtual dumping ground for every device that doesn’t have a dedicated filesystem. SCSI should be for physical SCSI devices only, USB devices should hang off a “RemovableFS” that has a better way of linking a physical device to a FileCore drive number that doesn’t involve made up SCSI bus/device ID’s – it’s idiotic.
No, that requires the OS to run a Boot Manager before it starts the boot process. This is built into the UEFI / GPT spec, but there’s no bounty currently covering it – it should probably be included in the Partition bounty as that explicitly specifies GPT. |
Chris Hall (132) 3559 posts |
Surely you can examine the SCSI device using the device ID and read its name (and disc number). HForm must do something similar? |