Open phillxnet opened 8 years ago
Also a pause/resume button which would in turn run one of the following commands:
btrfs balance pause /mnt2/pool-name
btrfs balance resume /mnt2/pool-name
Ensure with this addition that we update the db of balance tasks via a call to:
storageadmin/views/pool_balance.py _balance_status(pool)
This should be done after every button press to ensure the db is updated accordingly.
Issue #1022 (pr #1418 pr #1445) already has pending commits that help the Web-UI layer interpret cancelling, cancelled, pausing, and paused states within running balance tasks. So this issue should only be attempted after those commits are merged.
Please update the following forum thread with significant progress on this issue: https://forum.rockstor.com/t/running-balance-does-not-show-under-balances/1981
As balance operations can be lengthy and inconvenient I propose we have a 'Cancel balance' button which would simply run the following command:
This button could be located next to the the existing "Start a new balance" button in each pools "Balances" tab.