public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Hardlink behavoir?
@ 2002-09-12  6:16 Eric D Crahen
  2002-09-12  6:20 ` Corinna Vinschen
  2002-09-12 12:49 ` Frank-Michael Moser
  0 siblings, 2 replies; 3+ messages in thread
From: Eric D Crahen @ 2002-09-12  6:16 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Hardlink behavoir?
  2002-09-12  6:16 Hardlink behavoir? Eric D Crahen
@ 2002-09-12  6:20 ` Corinna Vinschen
  2002-09-12 12:49 ` Frank-Michael Moser
  1 sibling, 0 replies; 3+ messages in thread
From: Corinna Vinschen @ 2002-09-12  6:20 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Hardlink behavoir?
  2002-09-12  6:16 Hardlink behavoir? Eric D Crahen
  2002-09-12  6:20 ` Corinna Vinschen
@ 2002-09-12 12:49 ` Frank-Michael Moser
  1 sibling, 0 replies; 3+ messages in thread
From: Frank-Michael Moser @ 2002-09-12 12:49 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-12 18:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-12  6:16 Hardlink behavoir? Eric D Crahen
2002-09-12  6:20 ` Corinna Vinschen
2002-09-12 12:49 ` Frank-Michael Moser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).