commit | 1399c5ad53f380ebf4e465892bfd0c8b82b12aeb | [log] [tgz] |
---|---|---|
author | Yauheni Kaliuta <yauheni.kaliuta@redhat.com> | Tue May 09 22:09:22 2017 +0300 |
committer | Lucas De Marchi <lucas.demarchi@intel.com> | Thu Jun 01 20:23:13 2017 -0700 |
tree | 87b64a630549d15dff9b25e6584c2949d1f4ccfc | |
parent | 369ca65620a00611285666c9b961e6156572e8d7 [diff] |
depmod: rewrite depmod modules search with scratchbuf The recursive search code used used pretty big, PATH_MAX, automatic storage buffer for the module directory scanning. Some time ago there was scratchbuf implemented, which dynamically reallocates its buffer on demand. The patch takes it in use for the scanning code also. The initial size is hardcoded to 256 bytes which sounds good enough for most usecases so there should be not many reallocations. Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
This is a mirror only. Please see README file for more information.