From: Daniel Berger Date: 2011-01-06T01:37:07+09:00 Subject: Getting the actual size of a sparse file Hi, How do you get the true size of a sparse file? Using /var/log/lastlog on Ubuntu as an example I see this with "ls -lh" 287K lastlog With "ls -sh" I see this: 40K lastlog A File.stat call reveals this: # Multiplying blocks * blksize doesn't seem to match up, either. How do I arrive at 40k? Also, how would one go about detecting a sparse file? Regards, Dan