Skip to content

Make zpool status "remove:" label print in bold #11255

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

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

as-com
Copy link
Contributor

@as-com as-com commented Dec 1, 2020

When ZFS_COLOR is set, zpool status shows row headings in bold, except for the "remove:" heading. This is a quick fix that makes it print in bold too.

Signed-off-by: Andrew Sun [email protected]

Motivation and Context

Motivation: it really bothers me to see an unbolded heading on the colorized zfs status output.

Description

This changes the line that printf's the row heading to use printf_color with bold instead.

How Has This Been Tested?

Compiled and ran zpool command on my machine, and it works as expected.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

When ZFS_COLOR is set, zpool status shows row headings in bold,
except for the "remove:" heading. This is a quick fix that makes
it print in bold too.

Signed-off-by: Andrew Sun <[email protected]>
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Dec 1, 2020
@behlendorf behlendorf requested a review from tonyhutter December 1, 2020 01:52
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Dec 1, 2020
@behlendorf behlendorf merged commit 95a78a0 into openzfs:master Dec 1, 2020
ghost pushed a commit to zfsonfreebsd/ZoF that referenced this pull request Dec 23, 2020
When ZFS_COLOR is set, zpool status shows row headings in bold,
except for the "remove:" heading. This is a quick fix that makes
it print in bold too.

Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Andrew Sun <[email protected]>
Closes openzfs#11255
behlendorf pushed a commit that referenced this pull request Dec 23, 2020
When ZFS_COLOR is set, zpool status shows row headings in bold,
except for the "remove:" heading. This is a quick fix that makes
it print in bold too.

Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Andrew Sun <[email protected]>
Closes #11255
jsai20 pushed a commit to jsai20/zfs that referenced this pull request Mar 30, 2021
When ZFS_COLOR is set, zpool status shows row headings in bold,
except for the "remove:" heading. This is a quick fix that makes
it print in bold too.

Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Andrew Sun <[email protected]>
Closes openzfs#11255
sempervictus pushed a commit to sempervictus/zfs that referenced this pull request May 31, 2021
When ZFS_COLOR is set, zpool status shows row headings in bold,
except for the "remove:" heading. This is a quick fix that makes
it print in bold too.

Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Andrew Sun <[email protected]>
Closes openzfs#11255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants