Closed disaster123 closed 6 years ago
Just guessing, but maybe this: https://github.com/kilobyte/compsize/commit/01ad3d03ba12d2ecd24e349be6f0ab5b905fb72d
Mhm that might be possible. I always thaught that btrfs-compsize shows me the exclusive extents and as ia have a lot of subvolumes the size is lower.
Judging from the size of your files, it's almost certainly this. It was a bug, sorry — the old version capped large files.
Closing; please reopen if you suspect anything else than that old bug.
@kilobyte ok thanks one last question would it be possible to skip extents already referenced by another file? This would make it possible to show total real size of multiple snapshots
I already thought this is the case after reading: "As it makes no sense to talk about compression ratio of a partial extent, every referenced extent is counted whole, exactly once -- no matter if you use only a few bytes of a 1GB extent or reflink it a thousand times. Thus, the uncompressed size will not match the number given by tar or du. On the other hand, the space used should be accurate (although obviously it can be shared with files outside our set)."
Yeah, this is already the case: for "Disk usage" and "Uncompressed", every extent is counted exactly once, no matter if it's referenced by many files/snapshots or just once. Do you think the documentation should be improved?
It's confusing because there are two cases: 1. an extent can be referenced multiple times, 2. a reference can use a part of the extent (but the whole extent is pinned, thus continues to take disk space).
I was running caed4fdcd888467ddabd1b964b7737c0a0b050c8 for a long time. I updated to latest version but values have massivly changed: caed4fdcd888467ddabd1b964b7737c0a0b050c8:
Current HEAD:
What has happened?