delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/01/11/15:16:54

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=kfI88DMwh98egJNXdve317vrE2OFnbmyBmnE5Ifb61WtinnvTWrYz
OVwCFNveo2kimCvf55J2vHGwGTc7ru7Pu1cVhlPtGQukx7BlwYHaPVdXqPI6i+Mt
BmpG99wpBlnoG+KmsC8r8ttmj3VTGDg6uhriSayBoi8+D8ERQrKjvE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=b1UGVhjORWdCL6PZbVi2jMRu2Ok=; b=W4yrHILNs4WD/N0NOlNaqEKRa8zx
YN3bxYhgsDoNE7d89UTBcBpxUzmgKWZaI/c3p/yMZwCjwXlfp/OVdGaHfAYhYMxt
q5GXDaIbPe7BVN/ka06RDpIChSKSvUN1fTyRLjzh/VCBffOOIflA7MTQzlQJVJLq
Zim11SBZKK9o/4o=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-101.6 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=walsh, Walsh, Hx-languages-length:1550, H*f:sk:5875B7F
X-HELO: drew.franken.de
Date: Wed, 11 Jan 2017 21:16:35 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: hang on 'cat /proc/mounts' when one of the network drives is on a 'down' system
Message-ID: <20170111201635.GA29910@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5875B7F6 DOT 8090406 AT tlinx DOT org>
MIME-Version: 1.0
In-Reply-To: <5875B7F6.8090406@tlinx.org>
User-Agent: Mutt/1.7.1 (2016-10-04)

--d6Gm4EdcadzBjdND
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jan 10 20:43, L A Walsh wrote:
> I noticed my local terminals were not opening w/a shell prompt, but
> would timeout if I waited long enough...(1-2 minutes? maybe?).
>=20
> Turns out, one of my mounted net-drives was a down-system, so
> if I was trying to access the drive (or content on it), I can see
> it hanging.
>=20
> But what about "cat /proc/mounts" which is dumping out text
> like:
>=20
> Z: /z ntfs binary,user,noumount,auto 1 1
>=20
> should require accessing and hanging for a few minutes?
> Is it determining the network file type?  Wouldn't that
> remain constant for a given session (like I doubt that
> ntfs would exchange with smbfs and go back on fixed IP
> machines).
>=20
> I've tried using 'timeout', but it doesn't seem to work:
>=20
> read -t proc_mounts < <(timeout -k 2 1 cat /proc/mounts)
>=20
> (still hangs)

I know why this happens but I don't see an easy way around that.

Basically the problem is that Cygwin has no control over the OS mount
points (i. e., drive letter mapping and volume ireparse points).  Given
that, apart from C: maybe, the drive letter mapping can change any time,
Cygwin doesn't cache the information but requests it every time it needs
it.  This includes information required in /proc/mounts, here basically
the FS type.  This in turn requires to open a handle to the FS, which
may result in the observed hang.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--d6Gm4EdcadzBjdND
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJYdpKiAAoJEPU2Bp2uRE+gcAcP/0/YGHFg6UZd/dOhRsuekNkP
GhN5UXevjAuf9OJO0l0XXq0CNKnydfIcW3CdaVnuZ7hp9wZO5BbtZuasxkQGPlYo
onHY0qvCEh158TZNOBD9YJjfU9pghY8jIWeX1KYfS7qbb/pTUaA+c2Xc/JuwXG9g
fQowLo0C9hJdHdYT5pymHX9lYZCv9KsvTmGuHYnkZxAC7Mvh4DjCcnWqlHDJ4r8c
BrBIJ/DdF+W6EAfEStP/960Gy2lUGLSB1a4L2/KH+lZQ0+YdiRz75p+s66K9i05G
Hswmm8WkSyhv5bDn+Lt+KnyUlI3TBeSe//gR/PUOx+fnk8mXW/xhg88ftYJcSJ+s
rH9JVZV2z82qvRBKSXQJJvoyo1K6gktLXrqm9IUBt7NwuAy7i3YwqFYVl2ZL2YDW
gtM8Oyb8PSC4mdFGmS+XIftwyTQR8awIKvNfD9LuJ+L3DgL4fQW3a+N7GG8eUMqK
NPZ7hB2KmtBC5x829c0sxky+qDxrhgwPmd1ILHGbagGbmIQfqDCFnLLEmWzEF49I
k8wOGGYGnIK4QlOwFnuQy2acCdIszg4rTIXbGmXQxBcLIrHgUHFuV0L7JFQPk5t0
oMSR6s7k4G3PvFSdGT17I+OLlX28GnoGDxB0+hx5b6Ucej9RpyeGTsvBlXQGjLqW
fMxkw8dPSemSnSZDzPWF
=GnSw
-----END PGP SIGNATURE-----

--d6Gm4EdcadzBjdND--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019