home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zephyr.ens.tek.com!gvgpsa!treehouse!andyp
- From: andyp@treehouse.UUCP (Andy Peterman)
- Newsgroups: comp.sys.mac.system
- Subject: Re: How to reduce the size of catalog/extent file?
- Message-ID: <1385@treehouse.UUCP>
- Date: 25 Jul 92 06:35:56 GMT
- References: <jesse.711964420@square-crk>
- Organization: The Treehouse
- Lines: 30
-
- In article <jesse.711964420@square-crk> jesse@cs.UAlberta.CA (Jesse Lee)
- writes
- :
- >Recently I downloaded more than one thousand files to my hard disk
- >for temporary storage. Later I save them on floppies and delete them
- >from my hard disk. Then I discover about 400K of my hard disk space is
- >gone for the catalog file by running MacTools 2.0. I know as the number
- >of files of my hard disk increases, the size of the catalog/extent file
- >will grow. What I do not understand is as the number of files of my hard
- >disk decreases, these files do not shrink in size.
- >
- >I know one method to recover those disk space: erase the hard disk and
- >restore the files. But I certainly do not want to do it.
-
- Re-initializing the volume is the only way to recover that space. One of
- the nice things about HFS is that the catalog is dynamic - it starts off
- small (well, relatively small), but can grow if it needs to. This is much
- better than either starting off with an extremely large catalog or else
- running out of room after creating a few thousand files.
-
- After a new block has been created for the catalog, you can't really get
- rid of it because there might be files still existing in it. It would be
- possible, but very difficult, to write a utility that would compress the
- catalog down after you've deleted a bunch of files. This would involve
- messing with internal file system structures (B-Trees). Hardliy worth the
- trouble (and the potential for disater) to save 400K.
- --
- Andy Peterman
- treehouse!andyp@gvgpsa.gvg.tek.com
- (916) 273-4569
-