Update blkid

This commit is contained in:
Shohei YOSHIDA 2025-08-05 12:14:58 +09:00
parent 50611e5b99
commit 73b5b78d70
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
4 changed files with 25 additions and 16 deletions

View File

@ -27,7 +27,8 @@
# Description # Description
# ----------- # -----------
# #
# Completion for blkid (locate/print block device attributes) from util-linux # Completion for blkid, util-linux 2.40.2 (https://github.com/util-linux/util-linux/)
# - locate/print block device attributes
# https://man7.org/linux/man-pages/man8/blkid.8.html # https://man7.org/linux/man-pages/man8/blkid.8.html
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Authors # Authors
@ -36,18 +37,26 @@
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
_arguments \ _arguments \
'(-h --help)'{-h,--help}'[display help message and exit]' \ '(-c --cache-file)'{-c+,--cache-file}'[Read from cachefile instead of reading from the default cache file]:cache file:_files' \
'(-V --version)'{-V,--version}'[display version information and exit]' \ '(-d --no-encoding)'{-d,--no-encoding}"[Don't encode non-printing characters]" \
'(-c --cache)'{-c+,--cache=}'[specify cache file]:cache file:_files' \ '(-D --no-part-details)'{-D,--no-part-details}"[Don't print information from partition table in low-level probing mode]" \
'(-o --output)'{-o+,--output=}'[specify output format]:format:(full value device export udev)' \ '(-g --garbage-collect)'{-g,--garbage-collect}'[Perform a garbage collection on the blkid cache]' \
'--output-uuid[print only UUIDs]' \ '(-H --hint)'{-H,--hint}'[Set probing hint]:setting' \
'--output-label[print only labels]' \ '(-i --info)'{-i,--info}'[Display information about I/O limits]' \
'--match-token=[search for devices with specific tokens]:token (e.g. UUID= or LABEL=)' \ '(-k --list-filesystems)'{-k,--list-filesystems}'[List all known filesystems and RAIDS and exits]' \
'--match-tag=[search for devices with a tag name]:tag name' \ '(-l --list-one)'{-l,--list-one}'[Look up only one device that matches with the --match-token option]' \
'--probe[use low-level probing on devices]' \ '(-L --label)'{-L+,--label}'[Look up the device that uses this filesystem label]:label' \
'--match-types=[limit probing to specific filesystem types]:filesystem types' \ '(-n --match-types)'{-n+,--match-types}'[Restrict the probing functions to the specified comma-separated list of superblock types]:list' \
'(-d --no-encoding)'{-d,--no-encoding}'[do not encode non-printable characters]' \ '(-o --output)'{-o+,--output}'[Use the specified output format]:format:(full value list device udev export)' \
'--list-one[print only the first device found]' \ '(-O --offset)'{-O+,--offset}'[Probe at the given offset]:offset' \
'(-p --probe)'{-p,--probe}'[Switch to low-level superblock probing mode]' \
'(-s --match-tag)'{-m+,--match-tag}'[Show only the tags that match tag]:tag' \
'(-S --size)'{-S,--size}'[Override the size of device/file]' \
'(-t --match-token)'{-t+,--match-token}'[Search for block devices with tokens named NAME that have the VALUE]:name' \
'(-u --usages)'{-u,--usages}'[Restrict the probing functions to the specified comma-separated list of usage types]:list' \
'(-U --uuid)'{-U,--uuid}'[Look up the device that uses this filesystem uuid]:uuid' \
'(- *)'{-h,--help}'[Display help text and exit]' \
'(- *)'{-V,--version}'[Print version and exit]' \
'*:device:_files -g /dev' '*:device:_files -g /dev'
# Local Variables: # Local Variables: