]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: Add API to get/set unique IDs
authorKarel Zak <kzak@redhat.com>
Tue, 11 Jun 2024 09:55:39 +0000 (11:55 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Jan 2025 12:57:42 +0000 (13:57 +0100)
commit57ab4dc3781765a182cbb63dd04b5f25a2d88724
treea9f9c9c5ac7f9f264abeb1d54deeeb231933e456
parentba353afbeba6bcb7a07c447ee6832aa51eaf70ad
libmount: Add API to get/set unique IDs

Since the Linux kernel version 6.8, there are two types of IDs
available: the "old" ID used in /proc/self/mountinfo, and a new 64-bit
unique ID that is never recycled. This new ID is provided by the
statx(STATX_MNT_ID_UNIQUE) and statmount() syscalls.

Note that this patch only adds the API for retrieving these unique
IDs, but the backing code has not been implemented yet.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/docs/libmount-sections.txt
libmount/src/fs.c
libmount/src/libmount.h.in
libmount/src/libmount.sym
libmount/src/mountP.h