public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* tar failing hard link creation
@ 2008-05-07 12:31 tommi.sairo
  0 siblings, 0 replies; only message in thread
From: tommi.sairo @ 2008-05-07 12:31 UTC (permalink / raw)
  To: cygwin

Hi,

There is something mysterious in tar with Cygwin when archive contains hard links. Similar issues have been reported earlier:
http://sourceware.org/ml/cygwin/2006-12/msg00251.html
http://sourceware.org/ml/cygwin/2007-01/msg00705.html

In my case, a colleague was trying to extract a pre-built cross-toolchain on his brand new WinXP laptop from a tarball I had created earlier. This tarball extracts just fine on all tried systems except this one. Cygwin setup is exactly the same as in other computers (installed from same set of packages burnt on CD-R). Cygwin root is on NTFS filesystem. Creating hard links manually using ln works fine, but tar cannot extract hard links from an archive, giving errors like:
tar: bar: Cannot hard link to 'foo': File exists

Updating to current tar (1.20) gives the exact same behavior, but made it possible to circumvent the problem by repackaging the files with the new --hard-dereference option.

/TS


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-07 12:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-07 12:31 tar failing hard link creation tommi.sairo

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).