Treating Junctions consistently, as "normal dirs" as w/linux "bind"-type mount
Corinna Vinschen
corinna-cygwin@cygwin.com
Thu Mar 9 16:41:00 GMT 2017
On Mar 9 07:48, L A Walsh wrote:
> Andrey Repin wrote:
> > I would argue against all junctions being treated blindly.
> > The difference with bind mounts in Linux is that in Linux you don't have
> > the
> > information available within the filesystem itself, and have no other
> > option,
> > than to treat them as regular directories.
> > Only direct volume junctions cause an issue, and this is what should be
> > fixed,
> > if possible, not sidetracked with questionable workarounds.
> ----
> Could you describe the benefits of your proposed solution?
>
> You do know that MS originally called junctions "mountpoints",
> right? So why would cygwin treating them as such be a "questionable
> workaround"?
He's right. The mount point handling in Cygwin is based on the
in-memory mount table. There's no reasonable way to fake some
reparse point to look like a mount point. We can either handle it
as normal dir, or as symlink. Handling it as normal dir is
problematic in terms of find/rsync etc, bacause the cross-device
check would fail and files are potentially visited multiple times.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20170309/77bb751f/attachment.sig>
More information about the Cygwin
mailing list