Auto-rebalancing script
Hi,
I'm using this Ruby script to maintain my BTRFS filesystems and try to avoid them getting in a position where they can't allocate space even though there is still plenty of it.
It seems to work well (it maintains dozens of BTRFS filesystems, running balance on them on occasions and avoiding too much I/O stress if any most of the time) but there might be bugs or inefficiencies so I publish it in case it can be useful to others or benefit from criticism.
Lionel