> This is a terrible assumption in general (i.e. if filesize % blocksize
You didn't calculate the probability of actually saving a full block
or not (that's the only thing that matters). I assumed it's relatively
small and can be ignored in practice since the amount of end white
space is negligible compared to total file size.
-Andi
-