File LVM-completion-bsc946875.patch of Package bash-completion

---
 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
 
openSUSE Build Service is sponsored by