From mboxrd@z Thu Jan 1 00:00:00 1970 From: Denis Vlasenko Subject: Re: Finding hardlinks Date: Fri, 12 Jan 2007 00:43:58 +0100 Message-ID: <200701120043.58317.vda.linux@googlemail.com> References: <1166869106.3281.587.camel@laptopd505.fenrus.org> <20070103124211.GF3062@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Miklos Szeredi , bhalevy@panasas.com, arjan@infradead.org, mikulas@artax.karlin.mff.cuni.cz, jaharkes@cs.cmu.edu, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, nfsv4@ietf.org Return-path: Received: from ug-out-1314.google.com ([66.249.92.169]:9548 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030340AbXAKXpm (ORCPT ); Thu, 11 Jan 2007 18:45:42 -0500 Received: by ug-out-1314.google.com with SMTP id 44so644785uga for ; Thu, 11 Jan 2007 15:45:40 -0800 (PST) To: Pavel Machek In-Reply-To: <20070103124211.GF3062@elf.ucw.cz> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wednesday 03 January 2007 13:42, Pavel Machek wrote: > I guess that is the way to go. samefile(path1, path2) is unfortunately > inherently racy. Not a problem in practice. You don't expect cp -a to reliably copy a tree which something else is modifying at the same time. Thus we assume that the tree we operate on is not modified. -- vda