[comp.sys.mac.programmer] Please Help: Used Blocks on Disk

jmunkki@santra.UUCP (Juri Munkki) (08/29/88)

Last week I wrote a program that copies the contents of a hard disk
from one machine to a group of others in the appletalk network. Using
this program, you can update a whole classroom of computers without
having to manually copy the files from a disk or file server.

There are still some problems I'd like to solve and I haven't found
all the answers yet. The worst thing about my program is that it
copies every single block, even unused blocks. The second problem
is that I couldn't find a reliable way to find the size of the disk.

Optimally, I'd like to have a subroutine that takes the current
block number as a parameter and then returns the next used block
number and the number of following used blocks.

I would also like to know the official way to find out a disk's
ioRefNum and ioVRefNum.

If I get some useful help from the net, I'll clean up the program,
write a user interface and manual and make it public domain. I
might even make the sources public domain...

Juri Munkki
jmunkki@santra.hut.fi
jmunkki@fingate.bitnet