hfs

Why are there more files/hardlinks with the same iNode than the reference count shows?

I have recursed a folder on a single volume, and retrieved a list of filenames, reference-counts and inode numbers, using NSFileManager attributesOfItemAtPath and NSDictionary fileSystemFileNumber and objectForKey:NSFileReferenceCount For some reason I am getting results such as a reference count of 10, but a list of many more than 10...

How does one map physical sectors of a disk to the files that contain them on an HFS+ volume on Mac OS X

I've been recovering a hard disk using dd_rescue, which provides me a list of all of the device sectors it could not copy due to hardware errors. I'd like to take that list, and write a tool to give me all of the files that contain these bad sectors so I can delete them. I'm not sure what APIs I can use to do this--essentially i want to...

Mac File Name Conversion

I'm looking for the officially sanctioned algorithm to convert from mac FSSpec to a HFS full path name (ie: one with colons) that includes the volume. Preferably expressed in C ...

Rsync bash script and hard linking files.

I am creating a bash script to backup my files with rsync. Backups all come from a single directory. I only want new or modified files to be backed up. Currently, I am telling rsync to backup the dir, and to check the files compared to the last backup. The way I am doing this is THE_TIME=`date "+%Y-%m-%dT%H:%M:%S"` rsync -aP --link...