agronick / btrfs-size Goto Github PK
View Code? Open in Web Editor NEWA script that will print out a list of BTRFS subvolumes along with their size in megabytes and their name
A script that will print out a list of BTRFS subvolumes along with their size in megabytes and their name
On OpenSuSE Tumbleweed, I got this:
./btrfs-size.sh: line 55: can't + 0: syntax error: invalid arithmetic operator (error token is "'t + 0")
It was caused by not having quota enabled.
The no-so-nice thing about btrfs is that you can do btrfs quota enable /
but there is no btrfs command to tell quota is in fact enabled.
Please document that if you get the above error, then you need to enable btrfs quotas.
At now script auto-detect dimension for output size of disk - KB, MB, GB, etc.
This is not so good if we want to compare size of different disk, or parse and find large disks.
Please add command line argument to btrfs-size.py for force size output format, something like
btrfs-size.py --size-display=gb
Hi,
I have created BTRFS on an external device in order to store backups.
For creating backups I use snapper + snap-sync.
My question is:
How can I check the size of the subvolumes located on the external device that is mounted to /backup?
When I execute the script the output shows only snapshots belonging to /.
THX
When I run the script I get the following error:
./btrfs-size.sh: line 60: can't + 0: syntax error: invalid arithmetic operator (error token is "'t + 0")
Look here:
https://pastebin.com/raw/Z4tEet8E
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.