X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B431385022D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1692348297; bh=MWcEI/cSgI8SZRNZWDizAYlvYhnMa7MNDIZAmu8EC5o=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=rimIFsCgqMCOz+F0fF2+JXgb7/+/0E/pDemZpKBV/nrzy1G3Mic6dMSIvBQR3VlQR aG6p6e60Zuu/CMyP4+/zvU3sYtcLTMSvm/h9f99fw+GaHQcRhzEsr9lFtg53Iv+OMC 8nK7Q8jF44B6cyQ+9E1y1er61R9CSHcvdBRwof08= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 164A43858401 Date: Fri, 18 Aug 2023 10:44:17 +0200 To: cygwin AT cygwin DOT 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: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 37I8iw9U013677 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 -- 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