[fpc-pascal] Writing to a drive which may be spun down

wkitty42 at windstream.net wkitty42 at windstream.net
Thu Nov 21 13:12:09 CET 2019


On 11/21/19 1:16 AM, Brian wrote:
> My question: Is there a standard method for handling this situation,
> i.e. making sure that a drive has not spun down, or is it just a case
> of writing a wrapper round the write function and handling the 'No
> such file' error with a wait and a retry?


why not just turn off or adjust your power management so that drive doesn't spin 
down when it is connected? i do similar here but for my monitors which sometimes 
don't want to wake back up after being put to sleep...


-- 
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list unless*
        *a signed and pre-paid contract is in effect with us.*


More information about the fpc-pascal mailing list