home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / apple2 / 18988 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  2.5 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!swrinde!zaphod.mps.ohio-state.edu!n8emr!bluemoon!djredick
  2. From: djredick@bluemoon.rn.com (Darrin J. Redick)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: How many files in a ProDOS directory ?
  5. Message-ID: <41DDPB24w165w@bluemoon.rn.com>
  6. Date: 12 Aug 92 01:30:14 GMT
  7. References: <1992Aug7.044656.4138@cs.uow.edu.au>
  8. Sender: bbs@bluemoon.rn.com (BBS Login)
  9. Organization: Blue Moon BBS ((614) 868-998[024])
  10. Lines: 40
  11.  
  12. david@cs.uow.edu.au (David E A Wilson) writes:
  13.  
  14. > gberigan@cse.unl.edu (Life...) writes:
  15. > >Hmm, you just gave me a thought, which prompts me to create a
  16. > >subdirectory of infinite size, using that nice tool we know as
  17. > >recursion....  How many files would be printed before the system
  18. > >crashes? :-)
  19. > If you use recursion you will run out of path length (/X/X/X.....).
  20. > Iteration will be sufficient (/X/X00000 /X/X00001 .....).
  21. > It is quite easy to calculate where this will run out. A 32MB disk (65535 blk
  22. > has 16 blocks for the bit map, 2 for booting from & 4 for the volume director
  23. > Creating a subdirectory uses another block. Each file we create in that
  24. > directory (assuming we make them as small as possible) will use 1 block and
  25. > each 13 will require an extra subdirectory block. This works out at about 608
  26. > files and will take a very long time to complete (the directory will be 4680
  27. > blocks long and searched linearly).
  28. > No - I do not intend trying this out to verify my calculations :-).
  29. > -- 
  30. > David Wilson                (042) 21 3802 voice, (042) 21 3262 fax
  31. > Dept Comp Sci, Uni of Wollongong    david@cs.uow.edu.au
  32.  
  33. Yea, good luck in getting Cat Doctor to catalog it!  It will NOT catalog
  34. any directory which has more than 255 files in it.  I had this happen to 
  35. me a few days ago, so I know from personal experience about this.  AGATE
  36. craps out as well.  Don't know about ProTERM, though.  Copy II Plus works.
  37.  
  38. djredick@bluemoon.rn.com
  39.  
  40.   _______________________________________________________________________
  41.  |                                                                       |
  42.  | Internet: djredick@bluemoon.rn.com                                    |
  43.  |_______________________________________________________________________|
  44.  |                                                                       |
  45.  | FutureNet : #129@#02 #021@#03  #041@#05  #011@#08  #032@#09  #001#@10 |
  46.  |             #041@#14 #067@#15  #131@#16  #043@#19  #126@#22  #247@#25 |
  47.  |_______________________________________________________________________|
  48.  |                                                                       |
  49.