summaryrefslogtreecommitdiffstats
path: root/shell-completion/zsh/_udevadm
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-04-04 20:17:48 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-04-04 21:36:20 +0200
commitd90dbba7ec653d5f98ec5f019efdaa60786063fc (patch)
treecb8c2402fcd6699cab982c602fdd941ee8e58b44 /shell-completion/zsh/_udevadm
parentfix typo (diff)
downloadsystemd-d90dbba7ec653d5f98ec5f019efdaa60786063fc.tar.xz
systemd-d90dbba7ec653d5f98ec5f019efdaa60786063fc.zip
shell-completion: update for udevadm
Diffstat (limited to '')
-rw-r--r--shell-completion/zsh/_udevadm12
1 files changed, 12 insertions, 0 deletions
diff --git a/shell-completion/zsh/_udevadm b/shell-completion/zsh/_udevadm
index a277ad7929..f7c3384eae 100644
--- a/shell-completion/zsh/_udevadm
+++ b/shell-completion/zsh/_udevadm
@@ -115,6 +115,16 @@ _udevadm_wait(){
'*::devpath:_files -P /dev/ -W /dev'
}
+(( $+functions[_udevadm_lock] )) ||
+_udevadm_lock(){
+ _arguments \
+ '--timeout=[Maximum number of seconds to wait for the devices being locked.]' \
+ '--device=[Block device to lock.]' \
+ '--backing=[File whose backing block device to lock.]' \
+ '--print[Only show which block device the lock would be taken on.]' \
+ '--help[Print help text.]'
+}
+
(( $+functions[_udevadm_mounts] )) ||
_udevadm_mounts(){
local dev_tmp dpath_tmp mp_tmp mline
@@ -144,6 +154,8 @@ _udevadm_commands(){
'monitor:listen to kernel and udev events'
'test:test an event run'
'test-builtin:test a built-in command'
+ 'wait:wait for devices or device symlinks being created'
+ 'lock:lock a block device and run a comand'
)
if ((CURRENT == 1)); then