home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10485 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.7 KB

  1. Path: sparky!uunet!news.tek.com!ogicse!decwrl!csus.edu!netcom.com!pdh
  2. From: pdh@netcom.com (Phil Howard )
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Estimating MS-DOS file system usage on floppy (3.5HD)
  5. Message-ID: <1992Nov10.195935.5778@netcom.com>
  6. Date: 10 Nov 92 19:59:35 GMT
  7. Article-I.D.: netcom.1992Nov10.195935.5778
  8. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  9. Lines: 32
  10.  
  11. Does anyone know a formula for calculating the usage of files and directories
  12. on MS-DOS formatted floppy disks?
  13.  
  14. 1.  Of course there is the blocking factor (512) that a file size needs to
  15.     be rounded up to.
  16.  
  17. 2.  The directory entry for a file costs how much per file?  Are these
  18.     directory entries blocked at 512 also?  Any other overhead?
  19.  
  20. 3.  A subdirectory entries counted the same way as root directory entries?
  21.  
  22. 4.  What about the overhead of pointing to the data blocks in the file?
  23.     Are there any pointer and/or mapping blocks that need to be taken into
  24.     account?
  25.  
  26. 5.  Anything else?
  27.  
  28. I am writing a bin packing program to do grouped ftp/fsp downloads from
  29. unix with MS-DOS floppies (specifically 3.5HD) as the target.  Everything
  30. will be in binary so the CR/LF expansion is not a problem (I know what I
  31. need to do to deal with it if it ever does).
  32.  
  33. As the "bins" (floppies) are logically packed by the logic, I would need
  34. to as closely as possible estimate the disk usage.  I am assuming empty
  35. non-system disks.
  36.  
  37. Thanks.
  38. -- 
  39. /***********************************************************************\
  40. | Phil Howard  ---  KA9WGN  ---  pdh@netcom.com   |   "The problem with |
  41. | depending on government is that you cannot depend on it" - Tony Brown |
  42. \***********************************************************************/
  43.