]> sourceware.org Git - lvm2.git/commit
device_manager: add device_get_uuid
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 22 May 2024 23:36:50 +0000 (01:36 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 27 May 2024 13:35:56 +0000 (15:35 +0200)
commitdac2bfe6a4a901b91bf3c6c5ebf39ce5a14c8f20
tree5ef3fe3ef3dcb15a43edce9c60f72e9307f8fc01
parent5da282fa230894fa57e71a96d4a263a51cbd81e0
device_manager: add device_get_uuid

Function that is working with DM target is located within
lib/activate directory.

This function is able to use cached  dm_device_list when possible
to quickly resolve checks for device's UUID.

Function can fully replace get_dm_uuid_from_sysfs() and instead
of syscalls for open/read/close get the UUID with single ioctl.

When there is cached dm devs list, we can get many UUID from
a single syscall.
lib/activate/activate.h
lib/activate/dev_manager.c
This page took 0.039844 seconds and 5 git commands to generate.