]> git.ipfire.org Git - thirdparty/util-linux.git/commit - libblkid/src/evaluate.c
libblkid: trust in udev symlinks, don't verify
authorKarel Zak <kzak@redhat.com>
Tue, 12 Jun 2012 14:31:39 +0000 (16:31 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 12 Jun 2012 14:31:39 +0000 (16:31 +0200)
commita01e15f1e43dc5c3109ca77029678cdb88e160a3
treeebd28848155fd3426f86de26cd921e80fd26ee6f
parente4062c72d1733b0b99ed1c6269c996d6194e869b
libblkid: trust in udev symlinks, don't verify

The libblkid always verify that /dev/disk/by-* symlinks match with
on-device LABELs/UUIDs. It means that all requests (e.g. mount -L |
-U) generates extra superblocks scans on the device.

Currently, many users and tools (GNOME, systemd, ...etc) use the
symlink directly and udev maintains the symlinks by inotify (+watch
rule). It seems better for system performance to disable the extra
paranoid mode and trust in udev.

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