]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: use blkid_probe_open_device() in evaluate and verify
authorKarel Zak <kzak@redhat.com>
Tue, 30 Jun 2026 13:40:46 +0000 (15:40 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 9 Jul 2026 10:18:04 +0000 (12:18 +0200)
commit52c4ec23c5a2240220e7301bb92fc13ea3aeadf9
tree13ecaafb20f5d2bda3c94005f0b5c0f77f985b1c
parent8b6ca6fef9e17c195167d3622808cb411132eadb
libblkid: use blkid_probe_open_device() in evaluate and verify

Convert evaluate.c and verify.c to use blkid_probe_open_device()
instead of open() + blkid_probe_set_device(). This makes these
internal callers VFS-aware and simplifies fd ownership.

Clean up verify.c error paths with dev_err/dev_free labels.

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/evaluate.c
libblkid/src/verify.c