[Mingw-users] ... will not create hard link ...

21 views
Skip to first unread message

Perschak, Thomas

unread,
Mar 13, 2012, 10:13:45 AM3/13/12
to mingw...@lists.sourceforge.net
Hi,
 
what does it mean when cp is telling me:
 
cp -pr sourcedir/module/dsp destdir/
cp: will not create hard link `/e/CM/tcltk85/rcompile/dsp/NetBeans/tclVect/nbproject' to directory `/e/CM/tcltk85/rcompile/dsp/lib/el/Demod/other'
 
Most of the files and directories are copied ... but some give me that error.
 
When I pass the -f option it seems to work, but since the destination dir is empty I find it misterious that it fails.
 
thx
 

Earnie Boyd

unread,
Mar 13, 2012, 11:31:46 AM3/13/12
to MinGW Users List
On Tue, Mar 13, 2012 at 10:13 AM, Perschak, Thomas
<thomas....@siemens.com> wrote:
> Hi,
>
> what does it mean when cp is telling me:
>
> cp -pr sourcedir/module/dsp destdir/
> cp: will not create hard link
> `/e/CM/tcltk85/rcompile/dsp/NetBeans/tclVect/nbproject' to directory
> `/e/CM/tcltk85/rcompile/dsp/lib/el/Demod/other'
>

Somehow you have a NTFS directory that is marked as a hardlink and in
POSIX you cannot hardlink a directory, that is reserved for files so
MSYS gives an error.

> Most of the files and directories are copied ... but some give me that
> error.
>
> When I pass the -f option it seems to work, but since the destination dir is
> empty I find it misterious that it fails.

The -f (force) option just says "if an existing destination file
cannot be opened, remove it and try again". I'm thinking it should
have still failed and given an error message in this case but your
case is strange to POSIX.

--
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
MinGW-users mailing list
MinGW...@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-use...@lists.sourceforge.net?subject=unsubscribe

Reply all
Reply to author
Forward
0 new messages