Re: OLD kernel BUG with volume label? (MS works, 2026..2027rc not)

"Andreas K. Foerster" <[email protected]> Tue, 5 Nov 2002 01:24:44 +0100
Newsgroups gmane.os.freedos.devel
Message-ID <[email protected]>
On Mon, Nov 04, 2002 at 10:56:44PM +0100, Eric Auer wrote:

> Hi, Andreas (author of LWINFO) pointed out a BUG in FreeDOS.
> When I do "lwinfo a:" and A: is a floppy with "NO NAME" as label
> in the boot sector and there is no label in the root directory,
> LWINFO prints "unknown error" instead of "no label". This seems
> to be a kernel bug:
> 
> - MS DOS 6.2x: "no label"
> - FreeDOS, kernels 2027rc, 2027te, 2026b and 2025: all "unknown error"
> 
> DRL, however, correctly displays "no label". So I guess it is the way
> that Pascal detects the label that is not properly handled with FreeDOS.
> 
> LWINFO.pas assumes the error codes:
> 18 - no label

Fix:
replace "18" with "18, 2"

I'll upload the new version tomorrow.
And I'll make an english version soon...

> 3  - drive not found
> 152 - drive not ready
> else - unknown error

> Please check the FindFirst versus Label stuff. There is another strange
> thing concerning drives WITH label (gotten the wrong date by the FreeDOS
> label command under kernel 2027rc, but as MS DOS and FreeDOS return the
> same wrong year (date is okay), 2086 instead of 2002, I guess the READING
> is okay here). Whatever. No time to check now, anybody else who can do it?

When the label is set with MS-Dos, it's okay. It seems really to be a
problem with the "label" command.
I didn't check "format" yet.


P.S.: Great to see, that someone is really interrested in it. 
I nearly threw it away. ;-)

-- 
Tschuess
	Andreas