Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261315AbTEAOcN (ORCPT ); Thu, 1 May 2003 10:32:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261319AbTEAOcN (ORCPT ); Thu, 1 May 2003 10:32:13 -0400 Received: from willy.net1.nerim.net ([62.212.114.60]:34832 "EHLO www.home.local") by vger.kernel.org with ESMTP id S261315AbTEAOcM (ORCPT ); Thu, 1 May 2003 10:32:12 -0400 Date: Thu, 1 May 2003 16:43:16 +0200 From: Willy TARREAU To: "Martin J. Bligh" Cc: Willy TARREAU , Chuck Ebbert <76306.1226@compuserve.com>, linux-kernel Subject: Re: Kernel source tree splitting Message-ID: <20030501144316.GA1539@pcw.home.local> References: <200305010756_MC3-1-36E1-623@compuserve.com> <11850000.1051797996@[10.10.2.4]> <20030501142041.GD308@pcw.home.local> <13900000.1051799746@[10.10.2.4]> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13900000.1051799746@[10.10.2.4]> User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2318 Lines: 52 On Thu, May 01, 2003 at 07:35:48AM -0700, Martin J. Bligh wrote: > >> Indeed. But whilst you're waiting, hardlink everything together, and > >> patch the differences (patch knows how to break hardlinks). Make a > >> script that cp -lR's the tree to another copy (normally takes < 1s), and > >> then remove the other arches. grep that. > > > > I agree with Martin here, I always use hardlinks, and when I have too many > > kernel trees, I even recompact them by diff/rm/cp -l/patch to get as small > > differences as possible. You can have tens of kernels in less than 400 MB, > > and tools such as diff and grep are really fast because it's easy to keep > > several kernels in the cache. > > > > The only danger is to modify several files at once with stupid operations > > such as "cat $file.help >> Documentation/Configure.help" which are > > sometimes included in some scripts. It would be cool to be able to lock > > the source, but I never found how (perhaps I should try chattr+i ?). And > > I don't know how to force vi and emacs to unlink before saving, so I have > > to be careful before certain operations. But all in all, it's extremely > > useful. > > find -type f | xargs chmod ugo-w that's also what I do when I don't trust a script ;-) > whenever you make a new copy seems to work pretty well to me. > Then you use "dupvi" to edit the files, which is just a little wrapper that > breaks the link, and edits the file. I didn't know about dupvi. But I admit that it's really easy to break the link before starting vi, to ensure there's no problem. > For added paranoia, I suppose you could make your "main" views (eg the > unpatched ones) owned by another user. this could help emacs because it tries every possibility to save a file, even changing its rights if there's no other way. > But I've never had a problem with just chmod, and I have a lot of views ... > 1689 all linked together ;-) > > -r--r--r-- 1689 fletch fletch 18691 Nov 17 20:29 COPYING and I thought it was dirty when I began to reach 50 links.... :-) Cheers, Willy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/