mirror of
https://github.com/tobi/disktree.git
synced 2026-11-29 16:00:56 +00:00
The free space meter measures the scanned volume, but the projection added every marked target's bytes. A mark on another volume -- which -X crosses into, and a disk mounted inside the tree can hold -- gives its space back there, so the meter lent one disk another's. Attribute each target to the volume its bytes return to, by the rule the scan itself bounds a volume with (mount source and type, not a device number), and project only what comes back to the scanned volume. Marks on other volumes, snapshot subvolumes, and paths the mount table cannot place are reported as "not counted here" rather than added; every marked target is still removable, and the delete list still totals every byte.