Is it worth it for me to compress a 1000 byte file to a 300 byte file? or will the filesystem space consumption be the same?
I\'m looking at storing 10k less than 4k
The iPhone uses an HFSX filesystem, with an 8k block size on the user partition:
int main(int argc, char *argv[]) {
struct statfs *mntbufp = NULL;
getmntinfo(&mntbufp, 0);
unsigned i, count = 0;
count = getmntinfo(&mntbufp, 0);
for (i=0; i<count; i++)
{
char *volName = mntbufp[i].f_mntonname;
printf("Volume %s blocksize: %lu\n", volName, mntbufp[i].f_bsize);
}
return 0;
}
returns
Volume / blocksize: 8192 Volume /dev blocksize: 512 Volume /private/var blocksize: 8192 Volume /Developer blocksize: 4096