DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 514MdSih1600226
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 514MdSih1600226
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=k88xUrjY
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 120FE385842C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1738708767;
	bh=u/Vdkqx0TEBLVmpKzra+nF+7mzpHPyI5/4NigdR4Qwc=;
	h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:Cc:From;
	b=k88xUrjYX7984rBnE4cmWRPzooJ7pj34GKks5uzI7/52GWrObEoxL3r0hIlJvKnxZ
	 MwKEZ2jFKNAsUBd8GXFiJO6gJdO0dAynZN2FkqxcpL9Ys+fNc+nZyk+6ryg8mYPJrm
	 oQXUMQ+/LOzUhofT650WvT7Q+cOMxXrYyCmKMRMI=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 38D8A3858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 38D8A3858D20
ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1738708702; cv=pass;
 b=hLAyUGGPov0fkM55DPzofNKfJ/E4mOBBk0mALDxXsB1zMnAM+iW1qUkRtplJ3sJ5KmoWnWhkDCXSkmZ9QnzO3I1JoZ9ymce+ZE6yQUHrJJKxw4ky2t2GbRxDjfMYsCE1+NkMFz/EHxEBiyrh/4c4O8fhvnZCLTgK445jcqKXSqQ=
ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key;
 t=1738708702; c=relaxed/simple;
 bh=3RAziMsl95XMMLQz1UVB4Zu48aWr+0/kVSxRrK81c2U=;
 h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
 b=uKZ6v+yZOvNY9oHZZVKzbEu4CE7Y/6u/9Xk8TY9hlFwg7r6w3etGMvJvqd8kPpG6g3F+wmLGgsFNvEJZBTydl/LJKthiJrS390KJD+cEzRtVbe1Y6NvK66MNkRbdfpa7YlyYkQC/hp5/6BvfnB2JQjboIWOz8j+kvo0mnnYfjbY=
ARC-Authentication-Results: i=2; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38D8A3858D20
X-Sender-Id: dreamhost|x-authsender|gisburn@nrubsig.org
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1738708700; a=rsa-sha256;
 cv=none;
 b=zJ8N+z/lgitPRvRPeNtLgJ9KxFwRolpQktQMW/5dvpYa7mbQzrLsAKn6jhM1pcWTrdIjrR
 JHvDhlIMMEqkyZZKe4khvPBJqvuEzeQBqnDz6D0JYhrxvutjCvFAN3ReDCI4mvYdg+F2z8
 4/hCfUCCcfQPvil6Pegk3s/wytv58OorKXTFXKHHCNKJj36Xm3HwzL705j6PYGWYSeCCoL
 moDpyr989OHehARqFyzpkHG7AB9WvgLpRSPYN+FvY9tB2bTIp75D/hqT+OJKwjNyMkDx4u
 hoiMskKYNtVLrIhTyInv4IG4UTgLcVckcrOI15F62B7TIipwZm0B/FEES4Bq9Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
 d=mailchannels.net; s=arc-2022; t=1738708700;
 h=from:from:reply-to:reply-to:subject:subject:date:date:
 message-id:message-id:to:to:cc:mime-version:mime-version:
 content-type:content-type:dkim-signature;
 bh=on2nV8NP9fIBlkyB85wAK7jYRJpjA2JMq/ZxGMxSj3U=;
 b=9vJC2q8W2aMrI/9tS/Q+skEnmQVaeVUxfbdu6Knc9InhGTa1ujGOmyLec69eKSisnlC2my
 MLB4G8idIwOUdOJW2an/eGclGkeNeeMP2sUSKgR8VRBa4X9AbwI1YKZI2br63Btgw2yulZ
 qgoYX2vAVyDmTJUW+lnJrApTLnVAIXCNOXCsKq+0/j+Tm5WqgjASbeV7/zYVEbW1ck8VP4
 NCXrkHSupeqqN+2ZUs8p2J6nAJBpSZzEm3XIIeTjtvTEwO4wd5iGUXsWdXYvXJlo7ZW7J0
 jIUriTTZnIaM7eQDoKUZeYYo7SHkLmpzoOx/Ok21xMZiD91Z2kx6IYfw6t9WwA==
ARC-Authentication-Results: i=1; rspamd-854f7f575d-zj97g;
 auth=pass smtp.auth=dreamhost smtp.mailfrom=roland.mainz@nrubsig.org
X-Sender-Id: dreamhost|x-authsender|gisburn@nrubsig.org
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|gisburn@nrubsig.org
X-MailChannels-Auth-Id: dreamhost
X-Shoe-Abaft: 41ae01412d1db747_1738708700752_3654915442
X-MC-Loop-Signature: 1738708700752:1235364517
X-MC-Ingress-Time: 1738708700751
X-Gm-Message-State: AOJu0YzuwGmjhCmBPpA6mv4DeAcfbUvy1VRMyDnFi8uKt2ppondA5MWV
 BDOS8KrKL/AeVfnrS2UTBL/U3RNmBEnqGPC3K4m0Riilg4NyoWvL3AAriB+8sEvAPyXwx+gUfuH
 T68O5f23C9jpALamQPX/crHk58Zw=
X-Google-Smtp-Source: AGHT+IF1oNQF8/59fn7XeIylaVKcY3Bb9VZs9WI1F3B69wD8mUuWCUoq9E/Rw0IVuIjmkUPYN52xBATFTj5vhDMFMXo=
X-Received: by 2002:a05:6000:1fa1:b0:38c:2745:2ddb with SMTP id
 ffacd0b85a97d-38db4630f1dmr393616f8f.2.1738708698678; Tue, 04 Feb 2025
 14:38:18 -0800 (PST)
MIME-Version: 1.0
Date: Tue, 4 Feb 2025 23:37:52 +0100
X-Gmail-Original-Message-ID: <CAKAoaQ=c44QKPSN0=pweE+H=n2opxPnRjqVwcorow=y=_7TCHw@mail.gmail.com>
X-Gm-Features: AWEUYZk3FtvcdvtpMISBX5RsxVQ9T7KSTSkRBO5DDp5oggq1_uC-HvsaLA76ji0
Message-ID: <CAKAoaQ=c44QKPSN0=pweE+H=n2opxPnRjqVwcorow=y=_7TCHw@mail.gmail.com>
Subject: |IO_REPARSE_TAG_MOUNTPOINT| (Junctions) not working for remote
 filesystems in Cygwin ?
To: cygwin@cygwin.com
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Roland Mainz via Cygwin <cygwin@cygwin.com>
Reply-To: gisburn@nrubsig.org
Cc: Roland Mainz <roland.mainz@nrubsig.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

Hi!

----

I am tinkering with Win32 reparse point (Junction) support and tried
to implement |IO_REPARSE_TAG_MOUNTPOINT| (and other reparse tags) in
our filesystems (mostly for automounter+NFSv4.1 referral support), but
it seems that Cygwin does not support |IO_REPARSE_TAG_MOUNTPOINT| for
"remote" filesystems:
---- snip ----
  2576        if ((rp->SymbolicLinkReparseBuffer.Flags &
SYMLINK_FLAG_RELATIVE) ||
  2577            check_reparse_point_string (psymbuf))
  2578          return PATH_SYMLINK | PATH_REP;
  2579      }
  2580    else if (!remote && rp->ReparseTag == IO_REPARSE_TAG_MOUNT_POINT)
  2581      {
  2582        /* Don't handle junctions on remote filesystems as
symlinks.  This type
  2583           of reparse point is handled transparently by the OS so that the
  2584           target of the junction is the remote directory it is
supposed to
  2585           point to.  If we handle it as symlink, it will be mistreated as
  2586           pointing to a dir on the local system. */
  2587        RtlInitCountedUnicodeString (psymbuf,
---- snip ----

The matching code in our filesystems seems to work in PowerShell and
cmd.exe - so what context am I missing ?

----

Bye,
Roland
-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
