diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-10-09 14:54:16 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-10-09 15:04:32 +0000 |
commit | 91a70d3906fd3614cbfd335f1cedcf2d94950c35 (patch) | |
tree | 3242f9022833071181f48721d4bf987b624e4552 /features.d/network.files | |
parent | c9891b80712725db0bd696dc0bdfcde31286d6ca (diff) | |
download | mkinitfs-91a70d3906fd3614cbfd335f1cedcf2d94950c35.tar.bz2 mkinitfs-91a70d3906fd3614cbfd335f1cedcf2d94950c35.tar.xz |
nlplug-findfs: avoid lstat syscall wen scanning /sys if possible
There are ~10k entries in /sys so we want be fast. Not all filesystems
supports dirent filed d_type, (iso9660 for example) so we need use lstat
to find directories. However, we know that sysfs supports it, so we can
avoid 10k lstat syscalls. This might be noticiable difference on rpi.
Diffstat (limited to 'features.d/network.files')
0 files changed, 0 insertions, 0 deletions