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

Fixe lvm completion related with physical volumes #13

Merged
merged 2 commits into from Mar 9, 2016
Merged

Conversation

lhwang
Copy link
Contributor

@lhwang lhwang commented Mar 8, 2016

The current lvm completion has problems when executing the commands related with physical volumes.
These 3 patches correct completion of all lvm commands related with physical volumes.

Liuhua Wang added 2 commits March 8, 2016 11:21
_lvm_physicalvolumes() only gets PVs that belong to a VG. In some
cases like pvremove we can use all PVs including those not included
in any VGs.

So we add a new function _lvm_physicalvolumes_all() to get all PVs,
and fix all the commands that need to use _lvm_physicalvolumes_all()
instead of _lvm_physicalvolumes().

Signed-off-by: Liuhua Wang <lwang@suse.com>
Reviewed-by: Lidong Zhong <lzhong@suse.com>
Add _lvm_filedir() to use _filedir except set $cur to /dev
when $cur is empty.

Signed-off-by: Liuhua Wang <lwang@suse.com>
Reviewed-by: Lidong Zhong <lzhong@suse.com>
scop added a commit that referenced this pull request Mar 9, 2016
Fixe lvm completion related with physical volumes
@scop scop merged commit ccfd466 into scop:master Mar 9, 2016
@scop
Copy link
Owner

scop commented Mar 9, 2016

I'm not a lvm user myself, but the changes look sane on surface, so applied. Thanks.

@lhwang
Copy link
Contributor Author

lhwang commented Mar 10, 2016

I'm not a lvm user myself, but the changes look sane on surface, so applied. Thanks.
Thank you very much:)

Best,
Liuhua Wang

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