Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2000-10

RE: cluster size info for win9x/go32

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lee, John

The current fat32 dos routine(from Marco) uses the go32 unit to access dos memory...so can't see how to access the info in win32 without using a win32 specific algorithm. So any idea what the (simplest) single go32/w32 cluster size routine would look like...? TIA for any help. PS at the moment the simplest routine (it's about 7 lines of 100% standard fpc) I have which works for dos/win9x dos and win32 and linux too, is to write a 5 byte temp file & check the disk size change- crude but effective! TIA for something better...John

Earlier message 16 lines
-----Original Message----- From: Kuba Ober Sent: Friday, September 29, 2000 08:58 To: Subject: RE: [fpc-pascal]cluster size info for win9x/go32 >You simply need two completely different procedures to do this under Dos >and Win32. Under Win32, you don't communicate anymore with the OS using >interrupts (so calling int 21h will probably just crash a win32 program). Wrong ;-). There are some INT21 procedures which are accessible both in real and protected mode. FAT32 functions are example of these. Kuba

Reply by email

Marco van de Voort
to Jeff Wormsley
Show quoted text 5 lines
On 10/02/2000 at 2:20 PM Lee, John wrote: >...write a 5 byte temp file & check the disk size change- crude but effective! Unless another process writes a file as you write yours...

Or if you have a filesystem (like ext2fs, NTfs) that allocates fs metadata dynamically

Reply by email

Lee, John

yup, I did realise this - one can do a sort of check before creation & after but it isn't foolproof, or do the whole thing n times tho`...it's just that it's _so_ simple cf the other schemas...

Earlier message 18 lines
-----Original Message----- From: Jeff Wormsley Sent: Monday, October 02, 2000 02:36 To: Subject: RE: [fpc-pascal]cluster size info for win9x/go32 On 10/02/2000 at 2:20 PM Lee, John wrote: >...write a 5 byte temp file & check the disk size change- crude but effective! Unless another process writes a file as you write yours... Jeff.

Reply by email