Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jul 2005 12:28:38 +0200
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src ObsoleteFiles.inc
Message-ID:  <20050724102838.GK74719@obiwan.tataz.chchile.org>
In-Reply-To: <f7e3b7d8af2db993d879ca7e11746f01@fs.ei.tum.de>
References:  <200507231942.j6NJgdks037508@repoman.freebsd.org> <42E2A029.1090404@gmail.com> <42E2DA50.2000205@FreeBSD.org> <20050724011629.GK14567@elvis.mu.org> <f7e3b7d8af2db993d879ca7e11746f01@fs.ei.tum.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Simon,

> I looked into this when I wanted to do this for DragonFly (but I got 
> sidetracked). There are few methods in the tree (at least in DragonFly, 
> I don't think it's completely different in FreeBSD) by which files get 
> installed:
> - mtree
> - ${INSTALL}
> - ln
> - zic (needs more work)
> 
> there might be some other things as well, but that's the major part by 
> which about 98% of all files are being covered.
> 
> This means, after converting all occurences of `ln' to ${LN} (done in 
> DragonFly, tho there are some things you can overlook) and `mtree' to 
> ${MTREE}, ${INSTALL}, ${LN} and ${MTREE} can be replaced by wrapper 
> scripts which parse the parameters and record the created files into 
> some kind of log.
> 
> Storing these logs in, let's say /var/db/basefiles, let's you find out 
> files which were removed just by looking if a file doesn't appear in 
> the last log anymore.
> 
> I have to agree that wrapping the commands is a bit hackish, but it 
> basically works. Oh, of course this system also needs a static list of 
> files that were removed previously, so that it can bootstrap (it can 
> only catch files that were removed since the last time you ran 
> install-with-file-logging).

Just for information, did you make benchmarks of installworld with and
without this feature ?  I'm afraid this could lead to a serious penalty
in term of time for slower machine (I personaly use a PII 266).

Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050724102838.GK74719>