On 17/05/2019 16:28, Graham Cobb wrote:
That is why I created my "extents-list" stuff. This is a horrible hack (one day I will rewrite it using the python library) which lets me answer questions like: "how much space am I wasting by keeping historical snapshots", "how much data is being shared between two subvolumes", "how much of the data in my latest snapshot is unique to that snapshot" and "how much space would I actually free up if I removed (just) these particular directories". None of which can be answered from the existing btrfs command line tools (unless I have missed something).
I have my own horrible hack to do something like this; if you ever get around to implementing it in Python could you share the code?
-- Steven Davies
