1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/libdm/misc
Zdenek Kabelac 566c2f1828 libdm: support DM_NAME_LIST_FLAG
Kernel patch 8b638081bd4520f63db1defc660666ec5f65bc15
introduced support to return UUID in DM_LIST_DEVICES_CMD.

Useful when asking for UUID of each device where the list
could be now returned directly with NAME && UUID for each device.

Returning UUID is done in backward-compatible way. There's one unused
32-bit word value after the event number. This patch sets the bit
DM_NAME_LIST_FLAG_HAS_UUID if UUID is present and
DM_NAME_LIST_FLAG_DOESNT_HAVE_UUID if it isn't (if none of these bits is
set, then we have an old kernel that doesn't support returning UUIDs). The
UUID is stored after this word. The 'next' value is updated to point after
the UUID, so that old version of libdevmapper will skip the UUID without
attempting to interpret it.
2021-09-23 16:49:14 +02:00
..
dm-ioctl.h libdm: support DM_NAME_LIST_FLAG 2021-09-23 16:49:14 +02:00
dm-log-userspace.h gcc: use more zero length arrays 2021-09-22 17:18:50 +02:00
dm-logging.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
dmlib.h libdm: fix compiling with older gcc 2021-04-06 22:31:23 +02:00
kdev_t.h cleanup: move cast to det_t into MKDEV macro 2018-11-05 17:25:11 +01:00