This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: ldconfig speedup
- From: Roland McGrath <roland at redhat dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: "GNU C. Library" <libc-alpha at sources dot redhat dot com>, Michael Schroeder <mls at suse dot de>
- Date: Tue, 26 Jun 2007 10:29:43 -0700 (PDT)
- Subject: Re: RFC: ldconfig speedup
Probably should use 64-bit fields for ino, dev, size.
Should use ctime instead of mtime.
Need to align the table in the file.
The hack using the reserved header word is cute, nice for compatibility
paranoia in case of old ld.so's. OTOH, since only ldconfig uses this info
it is attractive to use a separate file altogether that only ldconfig knows
about. It should be in a proper place like /var/cache, not /etc. The
ldconfig cache can store the ctime and size, or signature, or whole
contents, of ld.so.cache so it can quickly and reliably punt a stale
incremental cache.
Thanks,
Roland