From d90dbba7ec653d5f98ec5f019efdaa60786063fc Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 5 Apr 2022 03:17:48 +0900 Subject: shell-completion: update for udevadm --- shell-completion/zsh/_udevadm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'shell-completion/zsh/_udevadm') 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 -- cgit v1.2.3