Date : Sat, 13 Nov 2010 02:28:50 +1030
From : station240@... (paul aslin)
Subject: RFC: Need two error numbers
> Date: Thu, 11 Nov 2010 23:16:48 +0000
> From: jgh@...
> To: bbc-micro@...
> Subject: Re: [BBC-Micro] RFC: Need two error numbers
>
> J.G.Harston wrote:
> > Sprow wrote:
> >> Error 202 "Data lost"
>
> What generates 202,"Data lost"? All I have for 202 is "Device fault"
> and "Bad sum" - and that's from twawling several dozen manuals, ROM
> images and programs. I can't remember what gives "Device fault", but
> I suppose if a storage device is faulty, that would result in lost
> data... which would be why read() fails...
I know all too well how to trigger "Data lost", managed to do it several
times today.
1) OPENOUT file and write some stuff but don't close it (or write in such
a way the FS doesn't like it)
2) CTRL+BREAK...
3) Access directory/file system again
4) Ponder if you really lost anything.
bonus points *grumble*
1a) Level 3 server throws various error messages like:
??? "00FA??????? Multiple block allocate fails"
??? "0083/008D?? Too much data sent from client Blocks of data sent are too big"
??? And sometimes refuses to close files.
2a) on the level 3 FS!
3a) log in again too.
But the real answer is simply that ADFS,Level3 FS and others buffer writes
to the disk, but leave the file marked as open first. Hence the data in memory
is lost.