]> 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)
committerWill Jordan <will.jordan@gmail.com>
Thu, 23 Jun 2022 18:58:29 +0000 (11:58 -0700)
commit689cdacffa6d9ebf3c27dd0813027fb02f9742ec
tree74ec75a1f5df6885ab03104e6bf323afc733cf10
parent90eeee21c69aa805709376ad8282e68b5bd65c34
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