]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: add support for ID=
authorKarel Zak <kzak@redhat.com>
Wed, 3 Jun 2020 14:53:00 +0000 (16:53 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Jun 2020 14:53:00 +0000 (16:53 +0200)
commitb3391f3ac790b52ec14d763c0ff5cde808309d76
tree72ebd127356c3a97496daff1e1b76c06f000627d
parent72bc0dd27cd3f3a9d1c324828a11e789d7795821
libmount: add support for ID=

This patch add support for a new tag. The tag is based on udev block
device ID (see /dev/disk/by-id). The usual use-case is to use
WWN for this purpose, for example

  # mount ID=wwn-0x50026b724b09a1ff /mnt

Note that ID is not strictly defined and udevd generates various IDs
also for HW where WWN is undefined. This is reason why introduce ID=
seems better and more generic than more restrictive WWN=.

Addresses: https://github.com/karelzak/util-linux/issues/1008
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/evaluate.c
libmount/src/utils.c
sys-utils/mount.8
sys-utils/mount.c