Path: utzoo!attcan!uunet!amdahl!ames!killer!pollux!ti-csl!m2!holland From: holland@m2.csc.ti.com (Fred Hollander) Newsgroups: comp.sys.mac.programmer Subject: Re: Missing megabytes Message-ID: <71908@ti-csl.csc.ti.com> Date: 10 Mar 89 19:44:33 GMT References: <457@sys.uea.ac.uk> <7550@polya.Stanford.EDU> <27058@apple.Apple.COM> Sender: news@ti-csl.csc.ti.com Reply-To: holland@m2.UUCP (Fred Hollander) Organization: TI Computer Science Center, Dallas Lines: 23 In article <27058@apple.Apple.COM> keith@Apple.COM (Keith Rollin) writes: >In article <7550@polya.Stanford.EDU> kaufman@polya.Stanford.EDU (Marc T. Kaufman) writes: >>In article <457@sys.uea.ac.uk> jrk@s1.UUCP (Richard Kennaway) writes: >>>I am writing a program which, among other things, makes a directory >>>listing of a volume. There is a strange discrepancy in the >>>information it collects. >> >>>When it scans through all the files and folders with PBHGetCatInfo >>>in the usual way, it always finds exactly the right number of files and >>>folders, but the sum of their sizes is sometimes less than the >>>calculated number of used blocks. This is just a guess. I'm certainly no expert in this area, but is it possible that the resource fork needs to start at a new block? If so, wouldn't you need to round up 2 blocks for files with resource forks, and 1 block for data only? Fred Hollander Computer Science Center Texas Instruments, Inc. hollander@ti.com The above statements are my own and not representative of Texas Instruments.