delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/16/05:34:49

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 16 Jan 2008 11:34:01 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Maybe 1.5 Regression: cp failing while working with cygwin 1.3.22
Message-ID: <20080116103401.GA19381@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <478CA52E DOT 8050609 AT onevision DOT de> <20080115140340 DOT GF5097 AT calimero DOT vinschen DOT de> <20080115143243 DOT GG5097 AT calimero DOT vinschen DOT de> <478D5C3B DOT 7030207 AT byu DOT net>
MIME-Version: 1.0
In-Reply-To: <478D5C3B.7030207@byu.net>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Jan 15 18:22, Eric Blake wrote:
> According to Corinna Vinschen on 1/15/2008 7:32 AM:
> |> 8808978157900 drwxr-xr-x 1 corinna root 0 Jan 15 14:46 subdir
> |> 8808978157900 drwxr-xr-x 1 corinna root 0 Jan 15 14:46 symlink
> |> [...]
> |> I have no idea why Samba doesn't return the correct i-node number for
> |> symlinks.  This is most unfortunate.
> |
> | Eric, maybe cp(1) can be pushed up a bit by checking the number of
> | hardlinks on the file?  Two files with identical i-nodes are only
> | actually hardlinks to the same file if the number of links is equal
> | and > 1?
>
> I'm not sure how useful that would be.  I already do something similar for
> checking whether two spellings represent the same file with different
> case, but it adds time and the potential for race conditions.  It seems
> like it would be better to work around this samba bug in samba itself, or
> in cygwin1.dll so that all cygwin apps will benefit, rather than
> special-casing and slowing cp even further.

Sigh, I guess you're right.  I hate having to use fake i-node numbers
for Samba.  I will report the problem in Samba's bugzilla and see if
there's a chance to fix this in a future release.  IMHO, it doesn't make
sense to have identical i-node numbers but a link count of 1.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019