Description
阿香 reported on the mailing list that his total disk space usage is significantly more than the metric reported by the LBM usage metric.
Adar and I investigated and found the likely cause: when writing to LBM containers, the LBM preallocates disk space at the end of the file where the next blocks will be written. However, the preallocated space can extend past the "full" container size, and when the container is declared full, we don't truncate or punch away that preallocated space.
Thus, even when a container has been mostly punched out, we still end up with ~15-30MB of wasted disk space at the end.