Re: Bug in 1541 (Jiffy) DOS: allocating files

silverdr_at_wfmh.org.pl
Date: 2009-01-25 17:30:00

On 2009-01-24, at 16:10, Ruud@baltissen.org wrote:

> Hallo allemaal,
>
>
> I ran into a bug in JiffyDOS. I told you about the problems I had with
> copying sequential files. The source file had sectors, each filled  
> with
> A's, B's, C's etc. After the creation (or copying) of the file I was
> missing one sector every time. After spending some hours looking for  
> what
> caused the problem, I tried my program on a real 1541-II. Surprise,  
> same
> problem! The only thing you have to do to see what I mean is to  
> write (a
> multple of) 254 bytes to a sequential file. Now add the number of  
> blocks
> occupied by the files and the number of free blocks: you will have one
> short.

hm - interesting. Is it so that it allocates one block more "in hope"  
of more data coming but once you close the file it takes the actual  
length while the last block remains allocated? Looks like typical  
"boundary error"...

>
> FYI: this 1541-II has no way to switch to the original DOS, so I  
> couldn't
> test if it is just a bug in JiffyDOS or a bug that originates from the
> original DOS.

You can probably drop it at VICE to verify.

>
>
> But I cannot imagine that I'm the first person in xx years  
> encountering
> this problem. Is this a known bug or not?
>

I think I heard years ago, among other peculiarities but can't be sure  
today if this was exactly this case. We can verify - I remember that  
the suggestion was to VALIDATE frequently. If the result of this bug  
can be fixed by VALIDATE then perhaps it is the same. Otherwise  
something I haven't heard of.

-- 
SD!


       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.