Looking into this a bit, I'm not quite sure how to estimate the number of sectors to provide during formatting so that a given directory can be stored in the file system with as little overhead as possible. The use case for this is creating apple disk images (dmg) with a FAT32 file system for distribution of appbundles, which currently requries playing around with the total_sectors parameter of FormatVolumeOptions.