[comp.sys.amiga] Sloppy read/write error handling

Sullivan@cup.portal.com (sullivan - segall) (04/08/90)

>     I kick the disk back out.  "Gimme it back!!!"  <Cancel!> <Cancel!>
> <Cancel!> <Cancel!> <Cancel!>  "I'm not kidding!  You had better do as
> I say!"  <Cancel!> <Cancel!> <Cancel!>  "I warned you!"
>
>     I am then greeted by MR. Guru.  I really don't think a bad disk
> should bring down the system.  When this occurs, is there anything I
> can do about it?
>
The problem that you are experiencing is the interaction of two programs.
Part of the system software detects the error, and brings up the requestor.
When you click "Cancel!" it sends an error code back to the calling program.
The program recognizes the error code, and dutifully tries its request
again.  Typically most programs will try a write three times before failing
a single request.  Most reads are retried five times.  

...but even if one read or write fails, the program may go on and try 
reading more of the disk.  If there are more errors to be found then each
will result in another 3-5 requestors.  

Generally the best way to deal with it if you don't mind missing the 
errors completely (generally you'll just get an error from the calling
program along the lines of "Couldn't read directory" or something like
that.) is by running "CANCEL!". This program is available in the public
domain.  It sits around waiting for dos-requestors to come up, and sends
back the Cancel! response automatically.  (Without ever drawing the 
requestor.)  


As for your GURU's, I would recommend not removing the floppy disk when
a read or write is in progress. 
 
                           -Sullivan Segall
_________________________________________________________________
 
/V\  Sullivan  was the first to learn how to jump  without moving.
 '   Is it not proper that the student should surpass the teacher?
To Quote the immortal Socrates: "I drank what?" -Sullivan
_________________________________________________________________
 
Mail to: ...sun!portal!cup.portal.com!Sullivan or
         Sullivan@cup.portal.com
 

akcs.slippery_jim@tronsbox.UUCP (slippery_jim) (04/11/90)

 
Try 1-800-541-1849
 
Sony..For .49 Minumum of 50.
 
uunet!tronsbox!slippery_jim