X-Originating-IP: [200.42.4.138] From: "Norberto Alfredo Bensa" To: "Martin Str|mberg" Cc: References: <200101051844 DOT TAA15180 AT father DOT ludd DOT luth DOT se> Subject: Re: Fw: Patch for statfs.c Date: Fri, 5 Jan 2001 18:40:47 -0300 Organization: nBens@ Computers X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: X-OriginalArrivalTime: 05 Jan 2001 21:45:21.0459 (UTC) FILETIME=[CD7EF830:01C07760] Reply-To: djgpp-workers AT delorie DOT com From: "Martin Str|mberg" > > 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...