Comments (7)
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.
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.
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.
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.
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.
Hello :)
Any update on that ? Do you wish to implement it ?
Do you need help for testing ?
Thanks
from buttermanager.
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)
- App not launching HOT 13
- Main tab not updated when switching filesystem HOT 2
- RFE: PAM integration HOT 3
- AUR package depends on grub-btrfs HOT 1
- Consolidation broken HOT 9
- Taking snapshot does not work when manually deleted a previous of the same day HOT 1
- Snapshot error in logs HOT 6
- Error if sudo is not found HOT 4
- 'unknown': I need something more specific. HOT 4
- TypeError: load() missing 1 required positional argument: 'Loader' HOT 5
- Consolidation not working if docker uses btrfs subvolumes HOT 3
- Not working anymore after GRUB update HOT 5
- Font size very small after upgrade to 2.5 HOT 1
- Any conflicts with other GUIs? HOT 1
- Snapshot not taken : issue with spaces in name ? HOT 5
- Updated system, error HOT 2
- Fatal error when starting up: `ValueError: invalid literal for int() with base 10: ''` HOT 4
- Don't depend on grub HOT 3
- built/installed, errors out from cli, nothing from gui HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buttermanager.