From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by sourceware.org (Postfix) with ESMTPS id 405A53858416; Sat, 26 Aug 2023 17:44:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 405A53858416 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-1cd327d7cc1so189811fac.3; Sat, 26 Aug 2023 10:44:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693071872; x=1693676672; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zD9wkYtahAvCHcuvzD1tDMI3coB6LX2E9S19Rk9qtaU=; b=ncTPBV+3HvLXhbZ3Kw4ap9S8l9UaIMB68ttjRFma+zavm3bHaSOCg6GVORF8h5dkdj J+8B63utdHkYTwZrcCkblR435/0Qjv5E7Cp3W11DXWAd2oBJgni6Hj2DXRFFn1kchJYV 2++q+ZKHSOExlcqA1x19yGu/luVIsGOpH5NWmHw8o90wsvothhGixOyZ/PwaWOA9NTFy KVt5sWWH9W5KFoQlkKOkdYFmg1qwDs5fqPI1xokLnQfVnllJIm+kWkhfVtsFTYzqUW9V OobYJdlwIe2bqrJiCwEedZ0KF77tV4I54PzYeRY41Pa7WRxg5wOpkXlL2FcqWMDFlIA/ I5/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693071872; x=1693676672; h=content-transfer-encoding:cc: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=zD9wkYtahAvCHcuvzD1tDMI3coB6LX2E9S19Rk9qtaU=; b=BmqzzAo8sIlnK1QbUBrppJ/aeaq4RdCw3edOdFX1cakKwhGcyCoQ6u0TMkO0SA1npj 5jc0GuQ+EBtGXT/HJN/bG+0BwWSpnOC9GlQUuVeEeTJ5NKf/BPM8sNc7LLOOiCX/Q0dE ASqc35Ts9h+inCozseCAmltdQ44vVJ5TUYum1ECn0fNgQ20YY1EjMbiFH5H9MEUNnwrM yiOuv0CgpPxg/8Hs/QWDe9JS5LnQAAKOVurCaKvfZL/Z1p7FQZilTpR6bAEBY2/NjQKK 2XzQYwPKuQqu6ewtiEEBzV/cXG8L9N+MP6vRVxU03eOWtIqS+2b1V+WbhzPS2jV/JXg8 indA== X-Gm-Message-State: AOJu0Yw1Ftx6ljNLLWP43r05efQ5ODDPWEwKZEMYMwmJ3C2HfIUKfvF3 b1ZGUn5Mw+uD3zc5XXL2sM4e8Veb567jbeWrLw0o3kpXdEtGsw== X-Google-Smtp-Source: AGHT+IE2YffMrJECgoaPyk+BFIvAO2XcFVVbo7+m+U25Pl7jaFm/DiED4iUGJLkSyR3MtCkhw37w2VMq+evKhpPBP2I= X-Received: by 2002:a05:6870:828e:b0:1bf:d05f:f77 with SMTP id q14-20020a056870828e00b001bfd05f0f77mr6549859oae.48.1693071872348; Sat, 26 Aug 2023 10:44:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Martin Wege Date: Sat, 26 Aug 2023 19:44:21 +0200 Message-ID: Subject: Documenting Cygwin on NFS, no longer only exchange-medium! Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory To: cygwin@cygwin.com Cc: Corinna Vinschen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,PLING_QUERY,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, Aug 25, 2023 at 2:19=E2=80=AFPM Corinna Vinschen via Cygwin wrote: > > On Aug 23 01:05, Roland Mainz via Cygwin wrote: > > Note that Cygwin does not interpret the file |myfifo.fifo| as FIFO, > > instead it comes back as a symlink "myfifo.fifo -> ':\0:c4:1000'". > > > > AFAIK there are (at least) these two options to fix the problems: > > 1. Check whether the filesystem for the fifos path is NFS > > (cgywin.dll's |fs.fs_is_nfs()|), and if it is a symlink check if it > > starts with ':\0:c4:' (assuming "c4" is the prefix for inodes created > > with |mkfifo()|). If this condition is |true|, then cygwin |stat()|, > > |open()| etc. should treat this inode as FIFO. > > The downside is that it is not possible to diffentiate between Cygwin > FIFOs and real FIFOs created from the remote side in `ls -l' > output. Note that Cygwin returns the NFS stat info verbatim, so > a real FIFO is returned as a real FIFO: > > linux$ mkfifo bar > cygwin$ ls -l bar > prw-r--r-- 1 corinna vinschen 0 Aug 25 13:58 bar > > The idea was always to use NFS as exchange medium, but not as > installation medium for the entire distro or to keep Cygwin home > dirs on NFS. There were times where NFS was pretty unstable. > I used NFS for quite some time to build Cygwin packages, but at one > point I got trouble (performance problems with multiple concurrent > processes accessing an NFS share, build errors out of the blue), > so I switched to Samba shares, albeit grudgingly. I'm not yet > sure if the problems are fixed. At least a recent OpenSSH build > ran through without problems... Corinna, could you please update the Cygwin documentation then? We use NFS, both Windows builtin and CITI NFSv4.1, with Cygwin for years without major problems, so that comment about exchange-medium-only is clearly wrong! Thanks, Martin