diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2019-05-19 13:19:41 -0700 |
|---|---|---|
| committer | Laurent Vivier <laurent@vivier.eu> | 2019-06-24 22:19:30 +0200 |
| commit | f3a8bdc1d5b260d31422edd46360ff849dfbcc93 (patch) | |
| tree | 17037793383c863c36cb2b3a9174c142ad7cdd25 /include/hw/xen/interface/io/blkif.h | |
| parent | 474f3938d79ab36b9231c9ad3b5a9314c2aeacde (diff) | |
| download | focaccia-qemu-f3a8bdc1d5b260d31422edd46360ff849dfbcc93.tar.gz focaccia-qemu-f3a8bdc1d5b260d31422edd46360ff849dfbcc93.zip | |
util/path: Do not cache all filenames at startup
If one uses -L $PATH to point to a full chroot, the startup time is significant. In addition, the existing probing algorithm fails to handle symlink loops. Instead, probe individual paths on demand. Cache both positive and negative results within $PATH, so that any one filename is probed only once. Use glib filename functions for clarity. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Tested-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20190519201953.20161-2-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'include/hw/xen/interface/io/blkif.h')
0 files changed, 0 insertions, 0 deletions