[Coco] OS-9 128MB max hard drive - /sd1
Bob Devries
devries.bob at gmail.com
Thu Jan 22 16:16:15 EST 2015
IMHO, the driver should quietly accept a service request which it could
be expected to handle (like SS.WTRK) even though it does nothing, and
generate an error (usually error 208 - Illegal service request) for any
other service requests.
Error 246 is Not Ready, and would apply only in cases where the drive
doesn't spin up etc.
Regards, Bob Devries
Dalby, QLD, Australia
On 23/01/2015 3:59 AM, Allen Huffman wrote:
>> On Jan 22, 2015, at 11:21 AM, Darren A <mechacoco at gmail.com> wrote:
>>
>> Okay, I pushed another change to the SDC driver.
>> Looking at the source for the other low-level drivers I get the impression
>> that Setstat should just accept unsupported requests and return success.
>
> That seems unfortunate. Perhaps things changed with later generations of OS-9 (returning #246, I think, for anything not handled by the driver). I do recall doing that on my OS-9000 virtual floppy driver (RAM disk that honors all the settings of a real device so you could BACKUP to it). I made it honor a list of driver setstats and just return as if I did them, even though I did nothing. I still rejected unknown ones.
>
> I noticed you put everything in setstat, including things that seemed more like "gets". Is this the convention of RBF drivers on OS-9 L1/L2?
>
> -- Allen
>
>
More information about the Coco
mailing list