From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 164A43858401; Fri, 18 Aug 2023 08:44:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 164A43858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1692348261; bh=MkZgIvgLRi++GDvdBJ2P0gN1A+ArEJnLFHQto7evqqw=; h=Date:From:To:Subject:Reply-To:References:In-Reply-To:From; b=NBiwM9o+B5nYBk8jVqTTF5r7nvCSH2u4Wq6+nafJU5UrtEmePQQfy2J28Nxl1ft19 h7MWA4HTEU1YdjfE9IwaohFdZ68DTMnJ1dzwishw68dlPWGcjon6BBJQpC/ubqRSGO ka9IwrJIqaa/oxPGDQKs4+vca7ZCPYYJmR9AtfO0= Received: by calimero.vinschen.de (Postfix, from userid 500) id 817C4A80721; Fri, 18 Aug 2023 10:44:17 +0200 (CEST) Date: Fri, 18 Aug 2023 10:44:17 +0200 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: How does Cygwin detect MSFT NFSv3 file system? Re: Weird (path) problems with cygwin test release 3.5.0-0.384.g9939aa7d0945.x86_64 ... Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: On Aug 17 20:49, Martin Wege via Cygwin wrote: > On Mon, Aug 14, 2023 at 10:56 PM Corinna Vinschen via Cygwin > wrote: > > and the result is the same. Note that Cygwin supports MSFT NFSv3 but > > not CITI NFSv4.1 internally. No gurantee that Cygwin always does what > > is necessary for that other NFS. > > 1. How does Cygwin detect whether something is a MSFT NFSv3, or not? > Cygwin /bin/mount lists the CITI NFSv4.1 as 'nfs', so there *IS* > something which detects that? The filesystem name returned by NtQueryVolumeInformationFile is "NFS". If any other NFS returns the same filesystem name, it will be treated just like MSFT NFSv3. > 2. Are Cygwin soft link handing depend on MSFT NFSv3 or not, i.e. does > the Cygwin soft link code behave differently for MSFT NFSv3 file > systems? Yes. NFS doesn't support symlink creation and symlink reading via the usual functions, because Windows symlinks are created as reparse points. NFS doesn't support reparse points. So the developers of the MSFT NFS client had to invent their own way to create and read NFS symlinks: https://sourceware.org/git/?p=newlib-cygwin.git;a=blob;f=winsup/cygwin/path.cc;hb=HEAD#l1719 https://sourceware.org/git/?p=newlib-cygwin.git;a=blob;f=winsup/cygwin/path.cc;hb=HEAD#l2750 > 3. Does Cygwin implement the pathconf() api? Yes. Surprisingly, you can check this yourself by just calling the function and trying to compile your code. Corinna