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
Message-ID: <3D80E07A.5090408@decodon.com>
Date: Thu, 12 Sep 2002 20:44:10 +0200
From: Frank-Michael Moser <moser@decodon.com>
Organization: DECODON GmbH
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Hardlink behavoir?
References: <Pine.SOL.4.30.0209120729110.29651-100000@hadar.cse.Buffalo.EDU>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

There is a native command on WinXP (2000, NT?) to create hardlinks:

fsutil hardlink create /?
Syntax : fsutil hardlink create <neuer Dateinname> <vorhandener Dateiname>
   z.B. : fsutil hardlink create c:\foo.txt c:\bar.txt

After once a hardlink is created with Win's fsutil or with Cygwin's ln I 
found no means to decide which one originally did create it. So I guess 
that Cygwin-hardlinks should work fine for native Win-applications too.

Frank-Michael

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.
> 
> - Eric
> http://www.cse.buffalo.edu/~crahen
> 
> 
> --
> 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/


-- 
------------------------------------------------------------
DECODON GmbH                        phone: +49(0)3834 515231
W.-Rathenau-Str. 49a                  fax: +49(0)3834 515239
17489 Greifswald                    email: moser@decodon.com
Germany                               web:   www.decodon.com
------------------------------------------------------------


--
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/

