From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: Finding hardlinks Date: Tue, 9 Jan 2007 17:02:32 -0700 Message-ID: <20070110000231.GC9819@parisc-linux.org> References: <1168359985.7817.4.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Steven Rostedt , arjan@infradead.org, bhalevy@panasas.com, jaharkes@cs.cmu.edu, linux-fsdevel@vger.kernel.org, Miklos Szeredi , mikulas@artax.karlin.mff.cuni.cz, nfsv4@ietf.org, pavel@ucw.cz Return-path: Received: from palinux.external.hp.com ([192.25.206.14]:58083 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932555AbXAJACe (ORCPT ); Tue, 9 Jan 2007 19:02:34 -0500 To: Bryan Henderson Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Jan 09, 2007 at 03:43:14PM -0800, Bryan Henderson wrote: > >but you can get a large number of >1 linked > >files, when you copy full directories with "cp -rl". Which I do a lot > >when developing. I've done that a few times with the Linux tree. > > Can you shed some light on how you use this technique? (I.e. what does it > do for you?) A couple of weeks ago, a colleague asked me to generate a patch against his tree in a hurry. I did cp -rl his-tree my-tree (which completed quickly), edited the two files that needed to be patched, then did diff -urp his-tree my-tree, which also completed quickly, as diff knows that if two files have the same inode, they don't need to be opened. > Many people are of the opinion that since the invention of symbolic links, > multiple hard links to files have been more trouble than they're worth. I Other people are of the opinion that the invention of the symbolic link was a huge mistake. Po-tato, pot-ato ...