From: Sam Vilain (sam_at_vilain.net)
Date: Tue 12 Mar 2002 - 12:12:33 GMT
ragnar_at_this.is wrote:
> > My script[1] is not tied to a distribution at all; it merely scans X
> > (where X >= 2) directory structures, and where files are identical in
> > the two structures, it hard links them
> This sound great. But hard link them to where?
To each other.
> I think there should be a structure outside of the vservers.
Feel free to do so. It will be treated as an equal.
> If 25 ververs are running 2 or more distributions
> we will have 2 or more "versions" of the bin "ftp"
That's the intention.
> and a unify "cache" :-) in
> /opt/vservers/unify-pool/usr/bin/ftp/md5sum-filename-1
> /opt/vservers/unify-pool/usr/bin/ftp/md5sum-filename-2
I do like the idea of a cache, however it might be just as easy to just
use a perl module like DB_File & Storable and store this:
inode # -> { [ stat $filename ], SHA1sum }
structure in it.
> > and optionally sets immutable and immutable linkage
> > invert inode attributes,
> Could this be in a config file for each vserver?
I'm not sure this makes any sense :-) If you want different attributes,
run them with a seperate unify command.
Sam.