This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New rename(2) function


Quoting Igor Peshansky <pechtcha@cs.nyu.edu>:

On Tue, 7 Aug 2007, Eric Blake wrote:

Also, the check for link count >= 2 might also be optimized to skip
directories (whose link count is always > 1, but since directories can't
be hard-linked, it is not worth looking up their id).

Does POSIX mandate that directories cannot be hard-linked? I think NTFS can create hard links to directories, and reparse points can be used as hard links.

Hard links are not allowed for directories in NTFS. Junctions (reparse points) are more like symlinks for directories but cannot be used for files.


Earnie


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]