🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3572

Estimating MS-DOS file system usage on floppy (3.5HD)

#3572
From: Phil Howard
Date: Tue, 10 Nov 1992 19:59
32 lines
1794 bytes
Does anyone know a formula for calculating the usage of files and directories
on MS-DOS formatted floppy disks?

1.  Of course there is the blocking factor (512) that a file size needs to
    be rounded up to.

2.  The directory entry for a file costs how much per file?  Are these
    directory entries blocked at 512 also?  Any other overhead?

3.  A subdirectory entries counted the same way as root directory entries?

4.  What about the overhead of pointing to the data blocks in the file?
    Are there any pointer and/or mapping blocks that need to be taken into
    account?

5.  Anything else?

I am writing a bin packing program to do grouped ftp/fsp downloads from
unix with MS-DOS floppies (specifically 3.5HD) as the target.  Everything
will be in binary so the CR/LF expansion is not a problem (I know what I
need to do to deal with it if it ever does).

As the "bins" (floppies) are logically packed by the logic, I would need
to as closely as possible estimate the disk usage.  I am assuming empty
non-system disks.

Thanks.
-- 
/***********************************************************************\
| Phil Howard  ---  KA9WGN  ---  pdh@netcom.com   |   "The problem with |
| depending on government is that you cannot depend on it" - Tony Brown |
\***********************************************************************/
Technical Details
Message-ID: <1992Nov10.195935.5778@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.tek.com!ogicse!decwrl!csus.edu!netcom.com!pdh

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!news.tek.com!ogicse!decwrl!csus.edu!netcom.com!pdh
From: pdh@netcom.com (Phil Howard )
Newsgroups: comp.os.msdos.programmer
Subject: Estimating MS-DOS file system usage on floppy (3.5HD)
Message-ID: <1992Nov10.195935.5778@netcom.com>
Date: 10 Nov 92 19:59:35 GMT
Article-I.D.: netcom.1992Nov10.195935.5778
Organization: Netcom - Online Communication Services  (408 241-9760 guest)
Lines: 32