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

fix resize for GPT, be more verbose for logging #18

Merged
merged 2 commits into from Sep 8, 2017

Conversation

ogra1
Copy link
Contributor

@ogra1 ogra1 commented Sep 8, 2017

  • we are missing valuable info in the resize logs, so add -p everywhere
  • resize2fs fails with the new quoting when $resizeopts is empty (like it was in the GPT case),
    this issue is fixed as a side effect of adding -p everywhere.

- we are missing valuable info in the resize logs, so add -p everywhere
- resize2fs fails with the new quoting when $resizeopts is empty (like it was in the GPT case), 
  this issue is fixed as a side effect of adding -p everywhere.
@@ -103,11 +103,12 @@ if [ "$min_free_space" -lt "$free_space" ]; then
gpt)
# do_gpt needs the device name
do_gpt "$device" >>$LOGFILE 2>&1
resizeopts="-p"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a flag or test ensuring that resizeopts is never empty so that this bug doesn't come back with some refactoring later on. Please include a comment describing why that is needed.

Copy link
Collaborator

@zyga zyga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ogra1 ogra1 merged commit e8bff67 into master Sep 8, 2017
@ogra1 ogra1 deleted the make-resize-verbose-fix-gpt-resize branch September 8, 2017 13:05
@ogra1 ogra1 restored the make-resize-verbose-fix-gpt-resize branch September 15, 2017 10:42
@xnox xnox deleted the make-resize-verbose-fix-gpt-resize branch August 30, 2019 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants