GithubHelp home page GithubHelp logo

Comments (7)

lapineige avatar lapineige commented on June 12, 2024

For the record, right now I'm doing it with btrfs filesystem du -s SnapshotFolder(s). But it is slow (like du) and create moderately high (IO) load.
The result gives us Total, Exclusive and Set shared storage spaces.
I realise that, even if my goal here was to display the Exclusive value, giving the Total one is interesting too.

from buttermanager.

egara avatar egara commented on June 12, 2024

Hi @lapineige and again, thanks for your feedback!!

I don't know exactly what all this means. For this new feature to be useful, a new independent tab should be implemented or this size could appear next to each snapshot within the Snapshots tab?

I've found a script that gives all this information here https://github.com/nachoparker/btrfs-du (I tried to execute the command you gave me but some errors were thrown. After executing this script I learned that I need to enable BTRFS quota).

Could you check that script and tell me if it is useful? If it is, maybe I can contact the developer who created and include it somehow in ButterManager.

Thanks again for your time and feedback!

from buttermanager.

lapineige avatar lapineige commented on June 12, 2024

For this new feature to be useful, a new independent tab should be implemented or this size could appear next to each snapshot within the Snapshots tab?

I was thinking about the second option. Something similar to Timeshift for instance: https://laborversuch.de/wp-content/uploads/2020/03/main_window.png

Could you check that script and tell me if it is useful? If it is, maybe I can contact the developer who created and include it somehow in ButterManager.

In my case I would like not to enable BTRFS quota…
Did you have to enable it to execute btrfs filesystem du command ?

edit: I tried that btrfs-du script, well it works out of the box (and the result is very neat), so maybe I have quota enabled 🤔

edit2: I tried on another btrfs partition, turns out I have quota enable on / but not on the other partition.
Then :

INFO: Quota is disabled. Waiting for rescan to finish ...

This takes forever… uh well I mean 10s, but this is long 😅. But way faster than btrfs filesystem du.

I would be against adding such a feature if it means forcing the user to enable quota, or (worse) enable it for them, and there is still some issues with quota (namely performance issue with many snapshots https://btrfs.wiki.kernel.org/index.php/Status).
But if that works (in a slower way) without them… why not ? :)

from buttermanager.

egara avatar egara commented on June 12, 2024

I've been digging into btrfs-du script. I don't have quota enabled so, the script will enable it, calculate the space and then disable it again.

Maybe this feature could be disabled by default and include some checkbox to enable it. Then, every time a snapshot is created, launch the script, calculate the information and store it to display it after.

btrfs-du is in AUR for Arch Linux, but I don't know if this package exists on other distributions. Maybe the best way to do it is to re-implement this script in Python in order to include it out of the box with ButterManager.

I'll take a deeper look at the script. By the way, could you attach the information retrieved from btrfs-du script and tell me what values would be useful to see next to every snapshot?

from buttermanager.

lapineige avatar lapineige commented on June 12, 2024

I don't have quota enabled so, the script will enable it, calculate the space and then disable it again.

Oh, that's very interesting !

Maybe this feature could be disabled by default and include some checkbox to enable it. Then, every time a snapshot is created, launch the script, calculate the information and store it to display it after.

I'm ok with that, then a tooltip or so could warn about quota being enabled for a few seconds 🤔

Maybe the best way to do it is to re-implement this script in Python in order to include it out of the box with ButterManager.

I think so too, that would ease a lot the packaging 🤔
It's not on Ubuntu by the way.

what values would be useful to see next to every snapshot?

I'm looking for the "exclusive" size. That would tell me how much extra space is taken by that specific snapshot. That's particularly interesting to know 1) how much space can be freed by deleting that snapshot 2) have an estimation about how much data changed since that snapshot (and maybe how much important it can be). 1) is my goal and main use case here (for that proposal I mean).
The "total" size can be interesting to display too. It's just like "Size" and "unshared" here in Timeshift https://laborversuch.de/wp-content/uploads/2020/03/main_window.png

from buttermanager.

lapineige avatar lapineige commented on June 12, 2024

Hello :)

Any update on that ? Do you wish to implement it ?
Do you need help for testing ?

Thanks

from buttermanager.

egara avatar egara commented on June 12, 2024

Hi @lapineige

Sorry, I have not started to think about how to implement this feature because a lack of time :(

I'll have to dig into it again.

from buttermanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.