Subject: Re: RelCache (aka ELF prebinding) news
To: Thor Lancelot Simon <tls@rek.tjls.com>
From: Andrew Brown <atatat@atatdot.net>
List: tech-userlevel
Date: 12/04/2002 02:02:05
>1) As Jonathan has pointed out, a Fletcher sum is probably better than
>   an Adler sum for this purpose.  If you want an implementation, I'm
>   sure he or I can send you one (or you can write one yourself in a
>   couple of minutes, the Fletcher checksum is *really* simple).

i dunno what FITS is, but this

    http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/oldchecksum/node20.html

make fletcher sound...interesting.

>2) If instead of using hashes at all, you used the dev, ino, gen
>   triple for the library, plus the ctime and mtime, you'd have to
>   re-prebind after restoring, but you could at least be sure that
>   if the _kernel_ thought it was the same file, so would you; and
>   as a few people have pointed out, nobody actually moves shared
>   libraries around with any kind of frequency, and other Unix
>   prebinding systems all require re-prebinding if you do, so maybe
>   that's not the worst approach in the world.

"gen" isn't available to userland.  at all.  userland only gets zero.
fwiw.

>Anyway, that's really all I have to say about the subject.  Thank
>you _very_ much for spending so much time listening to suggestions,
>and for doing the work in the first place.

seconded.  now...i wonder how well this will all work with my
upside-down uvm model.  i'll certainly have to reprebind after
flipping over.  :)

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."