Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background balance should check full-balance in advance #168

Closed
kdave opened this issue Apr 17, 2019 · 2 comments
Closed

Background balance should check full-balance in advance #168

kdave opened this issue Apr 17, 2019 · 2 comments
Milestone

Comments

@kdave
Copy link
Owner

@kdave kdave commented Apr 17, 2019

The warning when full-balance is started in the background is pritnted too late, ie. in the forked process and the user does not see it nor is able to react.

To fix that, move the check before the fork in cmds-balance.c:cmd_balance_start

@kdave kdave added bug easy labels Apr 17, 2019
@CyberShadow
Copy link
Contributor

@CyberShadow CyberShadow commented Aug 18, 2019

kdave added a commit that referenced this issue Aug 20, 2019
Move the full-balance warning to before the fork, so that the user can
see and react to it.

Notes on test:

- Don't use grep -q, as it causes a SIGPIPE during the countdown, and
  the balance thus doesn't start.

- The "balance cancel" is superfluous as the last command, but it
  provides some idempotence and allows adding more tests below it.

Issue: #168
Signed-off-by: Vladimir Panteleev <git@vladimir.panteleev.md>
Signed-off-by: David Sterba <dsterba@suse.com>
@kdave kdave added this to the v5.2.2 milestone Aug 20, 2019
@kdave
Copy link
Owner Author

@kdave kdave commented Aug 20, 2019

Thanks, patch added to devel.

@kdave kdave closed this Aug 20, 2019
kdave added a commit that referenced this issue Aug 26, 2019
Move the full-balance warning to before the fork, so that the user can
see and react to it.

Notes on test:

- Don't use grep -q, as it causes a SIGPIPE during the countdown, and
  the balance thus doesn't start.

- The "balance cancel" is superfluous as the last command, but it
  provides some idempotence and allows adding more tests below it.

Issue: #168
Signed-off-by: Vladimir Panteleev <git@vladimir.panteleev.md>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Aug 26, 2019
Move the full-balance warning to before the fork, so that the user can
see and react to it.

Notes on test:

- Don't use grep -q, as it causes a SIGPIPE during the countdown, and
  the balance thus doesn't start.

- The "balance cancel" is superfluous as the last command, but it
  provides some idempotence and allows adding more tests below it.

Issue: #168
Signed-off-by: Vladimir Panteleev <git@vladimir.panteleev.md>
Signed-off-by: David Sterba <dsterba@suse.com>
kdave added a commit that referenced this issue Sep 4, 2019
Move the full-balance warning to before the fork, so that the user can
see and react to it.

Notes on test:

- Don't use grep -q, as it causes a SIGPIPE during the countdown, and
  the balance thus doesn't start.

- The "balance cancel" is superfluous as the last command, but it
  provides some idempotence and allows adding more tests below it.

Issue: #168
Signed-off-by: Vladimir Panteleev <git@vladimir.panteleev.md>
Signed-off-by: David Sterba <dsterba@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.