Dr. Werner Fink 2015-09-23 11:59:55 +00:00 committed by Git OBS Bridge
parent a65ee80f98
commit 0fa25174cc
3 changed files with 180 additions and 0 deletions

View File

@ -0,0 +1,171 @@
---
completions/lvm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
--- completions/lvm
+++ completions/lvm 2015-09-23 11:55:33.862917000 +0000
@@ -25,6 +25,12 @@ _lvm_logicalvolumes()
fi
}
+_lvm_filedir()
+{
+ test -n "$COMPREPLY" && return
+ COMPREPLY+=( $( compgen -f -d -- "${cur:-/dev/}" ) )
+}
+
_lvm_units()
{
COMPREPLY=( $( compgen -W 'h s b k m g t H K M G T' -- "$cur" ) )
@@ -98,6 +104,7 @@ _pvs()
else
_lvm_physicalvolumes
fi
+ _lvm_filedir
} &&
complete -F _pvs pvs
@@ -118,6 +125,7 @@ _pvdisplay()
else
_lvm_physicalvolumes
fi
+ _lvm_filedir
} &&
complete -F _pvdisplay pvdisplay
@@ -138,6 +146,7 @@ _pvchange()
else
_lvm_physicalvolumes
fi
+ _lvm_filedir
} &&
complete -F _pvchange pvchange
@@ -170,6 +179,7 @@ _pvcreate()
else
_lvm_physicalvolumes
fi
+ _lvm_filedir
} &&
complete -F _pvcreate pvcreate
@@ -195,6 +205,7 @@ _pvmove()
else
_lvm_physicalvolumes
fi
+ _lvm_filedir
} &&
complete -F _pvmove pvmove
@@ -208,6 +219,7 @@ _pvremove()
else
_lvm_physicalvolumes
fi
+ _lvm_filedir
} &&
complete -F _pvremove pvremove
@@ -325,6 +337,7 @@ _vgcreate()
_lvm_physicalvolumes
fi
fi
+ _lvm_filedir
} &&
complete -F _vgcreate vgcreate
@@ -385,6 +398,7 @@ _vgreduce()
_lvm_physicalvolumes
fi
fi
+ _lvm_filedir
} &&
complete -F _vgreduce vgreduce
@@ -415,6 +429,7 @@ _vgextend()
_lvm_physicalvolumes
fi
fi
+ _lvm_filedir
} &&
complete -F _vgextend vgextend
@@ -568,6 +583,7 @@ _vgsplit()
_lvm_physicalvolumes
fi
fi
+ _lvm_filedir
} &&
complete -F _vgsplit vgsplit
@@ -618,6 +634,7 @@ _lvs()
else
_lvm_logicalvolumes
fi
+ _lvm_filedir
} &&
complete -F _lvs lvs
@@ -638,6 +655,7 @@ _lvdisplay()
else
_lvm_logicalvolumes
fi
+ _lvm_filedir
} &&
complete -F _lvdisplay lvdisplay
@@ -662,6 +680,7 @@ _lvchange()
else
_lvm_logicalvolumes
fi
+ _lvm_filedir
} &&
complete -F _lvchange lvchange
@@ -700,6 +719,7 @@ _lvcreate()
_lvm_physicalvolumes
fi
fi
+ _lvm_filedir
} &&
complete -F _lvcreate lvcreate
@@ -720,6 +740,7 @@ _lvremove()
else
_lvm_logicalvolumes
fi
+ _lvm_filedir
} &&
complete -F _lvremove lvremove
@@ -740,6 +761,7 @@ _lvrename()
else
_lvm_logicalvolumes
fi
+ _lvm_filedir
} &&
complete -F _lvrename lvrename
@@ -764,6 +786,7 @@ _lvreduce()
else
_lvm_logicalvolumes
fi
+ _lvm_filedir
} &&
complete -F _lvreduce lvreduce
@@ -794,6 +817,7 @@ _lvresize()
_lvm_physicalvolumes
fi
fi
+ _lvm_filedir
} &&
complete -F _lvresize lvresize
@@ -824,6 +848,7 @@ _lvextend()
_lvm_physicalvolumes
fi
fi
+ _lvm_filedir
} &&
complete -F _lvextend lvextend

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Sep 23 11:58:33 UTC 2015 - werner@suse.de
- Add patch LVM-completion-bsc946875.patch to make LVM comands
work even without any scan happen (bsc#946875)
-------------------------------------------------------------------
Thu Aug 13 06:53:15 UTC 2015 - werner@suse.de

View File

@ -39,6 +39,8 @@ Patch4: init-completion-boo922758.patch
Patch5: ls-completion-boo889319.patch
# PATCH-FIX-SUSE boo#940835
Patch6: backtick-completion-boo940835.patch
# PATCH-FIX-SUSE bsc#946875
Patch7: LVM-completion-bsc946875.patch
BuildRequires: pkg-config
Requires: bash
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -57,6 +59,7 @@ of the programmable completion feature of Bash 2.04 and later.
%patch4 -b .p4
%patch5 -b .p5
%patch6 -b .p6
%patch7 -b .p7
%build
%configure