aboutsummaryrefslogtreecommitdiffstats
path: root/features.d/network.files
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-10-09 14:54:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-09 15:04:32 +0000
commit91a70d3906fd3614cbfd335f1cedcf2d94950c35 (patch)
tree3242f9022833071181f48721d4bf987b624e4552 /features.d/network.files
parentc9891b80712725db0bd696dc0bdfcde31286d6ca (diff)
downloadmkinitfs-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