DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 49U6IF6f3090056
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=Kv1daT/s
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9645C3858406
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1730269093;
	bh=DPcKLXqKfvHSrYBsN2CpLkMgJDYV314TWiqeMA6VMKY=;
	h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=Kv1daT/sqsI1GMZqy4ku02s4EjPf6a6GVQa5OpYm84rTK+5Qx10Z7GPMXMAHAnQ2+
	 lZ7UNOH3ebR+BhBUI/dNorh58/0QDkmWmNtpSiVfZ0fMWoVGZ9sspl8rWNoubzH5Ot
	 bH8HQemnQbSMCZP0aCz/wipCgrS3zzdGLG1NLQkU=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 56BF63858D28
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 56BF63858D28
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730269071; cv=none;
 b=wXR3PrwPKvioTWX33pSP8tn/R/Wg5FXWe9CQKPYN8ODRdNjih4svhTtXLbLxv6AVZFTm+LTMZMxn6wxs1L1/cJwvqY6ktZecQL6FJvhpQRVUbYvnjFzumuVPBijGT/rfmBjcPNbjVFOIRZpQzteRch8WGLQy/SIutv8VVG5eXTQ=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1730269071; c=relaxed/simple;
 bh=F5hT2hCVy803lTMIZrc4VpSCJHq7WoaLU28usOUY354=;
 h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
 b=cy525bzNf94bhE7EzMZaXkUotVieCvCmyKKCBnFUR8o5EFU+Xq5aJLJAS+9vunCM/TszDUz2goxtiy+FH5HdI7JFvQ4Ou8RdGt2d9q3aDKWFp7DeWvQh1reLSTI0WaMSHOtpjuzy7spIWf/O2HODt1jE2Jdj6LFDPN2NldWNiNI=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1730269068; x=1730873868;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=0crFe52o4ApHgwEw2CdcmBfM/QRBQgkqk3PeMSH3CWY=;
 b=lDT6UHKFH4noxnwhk284a2S85zUSGEx6ABaf1p5jeeSA70dlUs0wf+pDYtBWhMn+ao
 CavkjJL84oO2VzVDzDNglg1SpTvXn61dbZ2uFvQwLWmmvNPBmhOfKxlgYEtD4mH3rPZ1
 YRpgAXadJFD1CiRVZmHhCZRmPLtjmvvcoX7slnSQpsNne1bsjom8wwkKhIm9j/0qtaE4
 +8WEGHsfyYy9QQ+3Hzx4ih/BTg0LO4cQpWMNDUjWaeK65iV27i2GfF7GQ24caq1k3UFx
 eA1bTv3I4pONHVdnHXJZ7xWF1sj/XWdaaD94NyQAZIk+J+IICSV/jTP7HmwuBrjRa/Br
 kmBw==
X-Forwarded-Encrypted: i=1;
 AJvYcCWulSktiZHfX7gMHWH+GN0/AdzqHVALZUzuGHRVSxDv4SEQ6m6iCsCx0LRT8G+tpzV0JPsCSJQ=@cygwin.com
X-Gm-Message-State: AOJu0Yy9ZApBdUc+EKoHzEXb4yrc9qtgO26Uo20YQ0lSRlmQLHotBRZG
 YAcLG3ZMXceKFfv2iqYpkNK3rdELV59ORnIQXRL4GyTyK9lMGJYEwOF7/O4StCL3OyopV1YnBNI
 qeYTkTHhRPUXnYgUFKqpRzc/JBgsqam49
X-Google-Smtp-Source: AGHT+IFlJQ//y9AgqmJ3p+4l1pqJlrQEK7E58Y57ExaUX/GiW/H61QquJr00/vIUOU0u+6kgEksazenpwFwjL/ppCZg=
X-Received: by 2002:a17:906:dacd:b0:a9a:59f:dfb9 with SMTP id
 a640c23a62f3a-a9de5cfedb1mr1538481166b.5.1730269067710; Tue, 29 Oct 2024
 23:17:47 -0700 (PDT)
MIME-Version: 1.0
References: <CANH4o6PPaq0RRP4fv9BVGBZu06dgZ1gAgqC1yfjxFrA_wGUmVQ@mail.gmail.com>
In-Reply-To: <CANH4o6PPaq0RRP4fv9BVGBZu06dgZ1gAgqC1yfjxFrA_wGUmVQ@mail.gmail.com>
Date: Wed, 30 Oct 2024 07:16:00 +0100
Message-ID: <CALXu0Ucsy0Lp8aiTe2nZ0+S364nxJds1GB1nRXO4U474016FZA@mail.gmail.com>
Subject: Re: [Ms-nfs41-client-devel] WSL: Use ms-nfs41-client on WSL Linux?
To: ms-nfs41-client-devel@lists.sourceforge.net, 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: Cedric Blancher via Cygwin <cygwin@cygwin.com>
Reply-To: Cedric Blancher <cedric.blancher@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

On Tue, 29 Oct 2024 at 14:13, Martin Wege <martin.l.wege@gmail.com> wrote:
>
> Hello,
>
> How can I use ms-nfs41-client from a WSL Linux?

WSL does not mount anything except C: at boot time.

So you need to do a manual mount inside WSL.

Example 1, using drive letter N:
First mount NFS share in Windows's Cygwin terminal:
/sbin/nfs_mount  -o rw "N" nfs://31.48.17.20//lab/lab14/rundata/

Within WSL then mount Windows drive 'N':
mkdir /mnt/n
mount -t drvfs N: /mnt/n


Example 2, using UNC path:
/sbin/nfs_mount -o rw nfs://31.48.17.20//lab/lab14/rundata/

Within WSL then mount Windows drive
mkdir /mnt/rundata
mount -t drvfs '\\31.48.17.20@2049\nfs4\lab\lab14\rundata' /mnt/rundata

Just calling /sbin/nfs_mount without arguments will print you the UNC
path for each mount.

> Is this supported?

Yes, this is supported in the upcoming release of ms-nfs41-client,
with some limitations:
- Win32 QueryInformation types FileStatInformation (68) and
FileStatLxInformation (70) are not yet implemented, so uid/gid/mode
available in Cygwin are not available in WSL yet
- softlinks do not work (EPERM), likely because WSL probes
FileStatInformation&FileStatLxInformation at start, gets
STATUS_NOT_SUPPORTED and then treats it like a FAT drive.

Ced
-- 
Cedric Blancher <cedric.blancher@gmail.com>
[https://plus.google.com/u/0/+CedricBlancher/]
Institute Pasteur

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