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

zpool/zfs: restore --version & -V options #16617

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

robn
Copy link
Member

@robn robn commented Oct 7, 2024

Motivation and Context

zfs --version and -V stopped working.

Closes: #16615

Description

The -j option added a round of getopt, which didn't know the magic version flags. So just bypass the whole thing and go straight to the human output function for the special case.

How Has This Been Tested?

By hand.

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)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

The -j option added a round of getopt, which didn't know the magic
version flags. So just bypass the whole thing and go straight to the
human output function for the special case.

Sponsored-by: https://despairlabs.com/sponsor/
Signed-off-by: Rob Norris <robn@despairlabs.com>
@robn robn changed the title zpool/zfs: restore -V & --version options zpool/zfs: restore --version & -V options Oct 7, 2024
Copy link
Contributor

@usaleem-ix usaleem-ix left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this.

@behlendorf behlendorf added the Status: Accepted Ready to integrate (reviewed, tested) label Oct 7, 2024
@behlendorf behlendorf merged commit ca0141f into openzfs:master Oct 7, 2024
17 of 19 checks passed
behlendorf pushed a commit to behlendorf/zfs that referenced this pull request Oct 9, 2024
The -j option added a round of getopt, which didn't know the magic
version flags. So just bypass the whole thing and go straight to the
human output function for the special case.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Umer Saleem <usaleem@ixsystems.com>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes openzfs#16615 
Closes openzfs#16617
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.

zfs --version CLI nomore works in zfs-2.3.0rc1
3 participants