Mail Archives: djgpp-workers/2001/01/05/16:45:31
From: "Martin Str|mberg" <ams AT ludd DOT luth DOT se>
>
> In statfs.c there is this text:
> /* For a CD-ROM drive, Int 21h/AX=3600h gives incorrect info.
> Use CD-ROM-specific calls if they are available.
>
> Int 2Fh/AX=1510h gives us a way of doing IOCTL with the
> CD-ROM device driver without knowing the name of the
> device (which is defined by the CONFIG.SYS line that
> installs the driver and can therefore be arbitrary). */
>
> So I ask the list on which platforms does Int 21h/AX=3600h give
> incorrect info?
>
I've just tested on Win98 plain DOS mode and 213600 gives:
blocks = 32768, bsize = 4096, resulting in 134,217,728 or 128MB...
2F1510 gives:
blocks = 308862, bsize = 2048, resulting in 632,180,736 or ~602.9MB
Under Windows (DOS box) with 217303, I get:
blocks = 19275, bsize = 32768, resulting in 631,603,200 or ~602.3MB
Properties for my E: drive gives 631,603,200, that's what 217303 is
reporting.
Best regards,
Norberto
PS: I've tested with a CD-ROM, because I've not a DVD-ROM at hand at this
moment...
- Raw text -