-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Merge bash_completions changes from upstream #10456
Conversation
The current bash_completion contrib code in openzfs is very old, and some changes have been added since. The original repo is at https://github.com/Aneurin/zfs-bash I've been using the original @Aneurin code since my first deploy of ZoL. Signed-off-by: João Carlos Mendes Luís <jonny@jonny.eng.br>
@ggzengel would you please take a look? The last commit in this file was yours, and it motivated me to do the update. |
BTW: I was not sure if it was safe to keep the |
Just for some context to that, the rationale for disabling hostname completion is a combination of two things:
It's been several years but IIRC there was no other way to opt out of |
It's good to see these updated and the changes look good to me but I haven't tested them myself. I'm all for pulling them in as long as @Aneurin doesn't have any objection. Not to be greedy, but we have added several new subcommands over the last few years (zpool checkpoint|initialize|resilver|trim|wait) and it would be nice to update the script in a separate PR to cover them. |
I certainly have no objection. I've never used any of the new commands (actually, never heard of some of them) so I've not had an impetus to make any updates for a few years, but I'll review the current manpages with a view to adding the missing commands and options. That's unlikely to happen before the weekend though. |
Codecov Report
@@ Coverage Diff @@
## master #10456 +/- ##
==========================================
- Coverage 80.24% 79.46% -0.79%
==========================================
Files 293 393 +100
Lines 83882 123859 +39977
==========================================
+ Hits 67313 98427 +31114
- Misses 16569 25432 +8863
Continue to review full report at Codecov.
|
I am super curious, and did check what @Aneurin said:
Indeed, it is set in my system, Maybe we could agree on a safe path:
Sorry for my inexperience, but should I do this as another commit to my branch or as a force push? Also, what if a subsequent PR could make this installable? Probably best as a separate sub-package. I can do the RPM specs change, but I do not feel comfortable messing with other package systems. |
I think it makes sense to merge this as is. I'll go ahead and get it merged right away.
This we should definitely do as a subsequent PR. Making the change to the RPM spec file should be sufficient since we don't maintain other native packaging. Would we really need a sub-package, is there any harm in installing them as part of the zfs package? |
I was afraid to add another dependency ( |
The current bash_completion contrib code in openzfs is very old, and some changes have been added since. The original repo is at https://github.com/Aneurin/zfs-bash I've been using the original @Aneurin code since my first deploy of ZoL. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: João Carlos Mendes Luís <jonny@jonny.eng.br> Closes #10456
The current bash_completion contrib code in openzfs is very old, and some changes have been added since. The original repo is at https://github.com/Aneurin/zfs-bash I've been using the original @Aneurin code since my first deploy of ZoL. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: João Carlos Mendes Luís <jonny@jonny.eng.br> Closes openzfs#10456
The current bash_completion contrib code in openzfs is very old, and some changes have been added since. The original repo is at https://github.com/Aneurin/zfs-bash I've been using the original @Aneurin code since my first deploy of ZoL. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: João Carlos Mendes Luís <jonny@jonny.eng.br> Closes openzfs#10456
Motivation and Context
The current bash_completion contrib code in openzfs is very old, and
some changes have been added since.
Description
The original repo is at https://github.com/Aneurin/zfs-bash
I just made a diff and brought it all in a single chunk
How Has This Been Tested?
I've been using the original @Aneurin code since my first deploy of ZoL.
Types of changes
Checklist:
Signed-off-by
.