]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: use uniq_id for target mount verification
authorKarel Zak <kzak@redhat.com>
Thu, 25 Jun 2026 10:32:46 +0000 (12:32 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 29 Jun 2026 09:08:58 +0000 (11:08 +0200)
commite677abc421450b54783e0194597b09ed382cf93d
treee3010c9d91ac4ec7c7bd0982649341ba1ea32a5d
parent1cb24d37de96f32596164ce738713c0c04086044
libmount: use uniq_id for target mount verification

Prefer the unique mount ID (STATX_MNT_ID_UNIQUE) over the old mount ID
when verifying that a mount landed on the expected target in
mnt_context_reopen_target_fd(). Fall back to the old ID when uniq_id is
not available.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c