From owner-cvs-src@FreeBSD.ORG Sun Jul 24 10:28:53 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95B9C16A41F; Sun, 24 Jul 2005 10:28:53 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3575A43D46; Sun, 24 Jul 2005 10:28:53 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix4-2.free.fr (Postfix) with ESMTP id 32B1632345B; Sun, 24 Jul 2005 12:28:52 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id 24BE6407E; Sun, 24 Jul 2005 12:28:38 +0200 (CEST) Date: Sun, 24 Jul 2005 12:28:38 +0200 From: Jeremie Le Hen To: Simon 'corecode' Schubert Message-ID: <20050724102838.GK74719@obiwan.tataz.chchile.org> References: <200507231942.j6NJgdks037508@repoman.freebsd.org> <42E2A029.1090404@gmail.com> <42E2DA50.2000205@FreeBSD.org> <20050724011629.GK14567@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src ObsoleteFiles.inc X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2005 10:28:53 -0000 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 >