Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 12 Sep 2002 13:46:09 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Hardlink behavoir?
Message-ID: <20020912134609.A1574@cygbert.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <Pine.SOL.4.30.0209120729110.29651-100000@hadar.cse.Buffalo.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.SOL.4.30.0209120729110.29651-100000@hadar.cse.Buffalo.EDU>
User-Agent: Mutt/1.3.22.1i

On Thu, Sep 12, 2002 at 07:33:54AM -0400, Eric D Crahen wrote:
> Hardlinks on NTFS work great when you are using them only from within the
> cygwin environment. What happens when I modify one of the hardlinked files
> from outside cygwin. For example, if I execute 'ln MyDocument.doc
> MyLinkedDocument.doc' and then were to edit one of the files in Word or
> some other non-cygwin app.

It depends.  If the editor opens the file and changes it, the hardlink
remains valid and both directory entries point to the same file.  If
the editor removes the file and creates it new, they are then two
different files.  But this is not different from any POSIX system.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

