]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Improve is_dm_leaf performance
authorWill Jordan <will.jordan@gmail.com>
Wed, 22 Jun 2022 22:13:11 +0000 (15:13 -0700)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Jul 2022 15:58:32 +0000 (17:58 +0200)
commit789d6ddf14e1c323e482cefceb6ffb6b48ad6825
treef030bdd36f0d6485f7dcf5ed53208fcb2efdfdf2
parentc4ea22024f8cfaf69b8d7b97e58f14a9b8fc7c34
Improve is_dm_leaf performance
Read from `/holders` instead of `/slaves` to determine
whether the device is a leaf node, eliminating a scan
across all block devices in the system.
libblkid/src/devname.c