OLD kernel BUG with volume label? (MS works, 2026..2027rc not)
Eric Auer <[email protected]> Mon, 4 Nov 2002 22:56:44 +0100 (MET)
| Newsgroups | gmane.os.freedos.devel |
|---|---|
| Message-ID | <[email protected]> |
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
3 - drive not found
152 - drive not ready
else - unknown error
LWINFO.pas uses
FindFirst("X:\*.*", VolumeID, Info);
to get the label (it then extracts it from the Info structure
which is of type SearchRec).
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?
Thanks, Eric