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