Is there a possibility to "defragmentize" a sparse bundle image and reclaim (most) of the free space?
Here is the background: I am using sparse bundles and every now and then I want to reclaim space from them so I run:
hdiutil compact image.sparsebundle
However, as explained in the man page, it only reclaims completely unused band files, so in my case it says:
Reclaimed 0 bytes out of 90.4 GB possible.
Of course there is the possibility to copy the contents of this image to a new sparse bundle that is then used in lieu, but that is both cumbersome and requires enough free space for this operation.
Meanwhile, I found out that the output of the compact command is somewhat misleading (I am currently running OS X 10.5.7) as it sometimes lists a size as possible that is larger than the size currently taken up by the image bundle on the hard drive. I did not look closer but the output seems to be either the maximum size or "maximum size" - "used size".