delorie.com/archives/browse.cgi | search |
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=OOVrbS6eDQncjwCsO5z6B9hIoRDTI9GZMmSutr7Xj0AfYLiyQHdr0 | |
Kk8xDOr64ChyVNXAwVbXOjOGRO6jbA1LCGjCjtfhoyatJ5VpLG5/SM3Vz0hVxgTw | |
Ck9IXO+P7fllz/aBMDa8otBi/nyGf6wo3+DZeioocuMK4z5whx/2E0= | |
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=xdhogqumutoALut5bDn95iRivX8=; b=TRrF9Lc4G36zOsOVGFhBBv0oYn0T | |
icQ190PJ0aU0qHE3BVGWoVYn/jpK3ZyjkcncS9PdDNuf6jXyRx4BcOWqenUAct1M | |
xYQTsPSFjJl2lX26J5ICL7yLpGO7TA576fk3cqOORBIMfgmk84wtSny+n6mArBav | |
sr+7S1bHNGildn8= | |
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=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Mon, 8 Jun 2015 17:48:49 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: bind mounts in fstab |
Message-ID: | <20150608154849.GB13266@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <loom DOT 20150608T122736-327 AT post DOT gmane DOT org> <20150608124548 DOT GG3005 AT calimero DOT vinschen DOT de> <loom DOT 20150608T164231-729 AT post DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <loom.20150608T164231-729@post.gmane.org> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
--wzJLGUyc3ArbnUjN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jun 8 14:53, Achim Gratz wrote: > Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes: >=20 > > > //server/some/directory /mnt/server-share none binary 0 0 > > > #bind mounts > > > /mnt/server-share/some/other/directory /mnt/task1 none binary,bind > > >=20 > > > That works well until I try to add another such bind mount and activa= te it > > > via 'mount -a' without starting a new Cygwin session. Cygwin tries to > > > create a mount to the underlying local directory of /mnt/task1 instea= d of > > > binding, which doesn't work of course. > >=20 > > How does your second bind mount look like? >=20 > # new bind mount > /mnt/server-share/some/other/directory /mnt/task2 none binary,bind >=20 > Which tries to mount to=20 >=20 > %CYGWIN_ROOT%/mnt/server-share/some/other/directory >=20 > when I do a 'mount -a' in the same session. If I instead put in >=20 > //server/some/directory/some/other/directory none binary 0 0 >=20 > then everything works OK, AFAICS. This might be related to the fact that > some bind mounts appear before the physical mounts in the mount table (not > in fstab!), at least if the mounts are processed in the same order. Easily reproducible, thank you. I think I found the culprit. mount(1) always converts the mnt_fsname field to backslash notation. That breaks converting the bind mount from the expected POSIX notation to a valid Win32 path. I fixed mount(1) in git. If you're set up to build Cygwin yourself, you want to give the patch a try. No new DLL, just call the new mount(1) tool. Otherwise I'll build a new snapshot today or tomorrow (I'm hacking on something else right now). Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --wzJLGUyc3ArbnUjN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVdblhAAoJEPU2Bp2uRE+gHgoP/j/HfbH6V/hh5tVHLVEeW5z6 dFFOURX+WCFnMQqJGoRbrf0pSQi2ILNDwKKwFj4aMcaGSw/EBe3EyBeDFt0Bj4tI CwVTaR7UL6P3bKfdhqEbe+J9EFowqC6YBgLa8CkWyKj1Y58no2YRxXMVhidJkRTb BaiyhLdAgUWEMpDijwAndXpC6SfCfUgujnQlsycuCBRgCJkzFbcP1SILOTIVv3Or 1GxrI1QJg1JpH4C8OD5s7ZBsDhRlo0SqBtI1GhkMTcZVfmziESwKPoFqWrjGggcS PQafY2eHq7e7G+0CoqFwuO6xZeVYM1RFcIHRXNYGWrwRV2jzHBe/ChJboYIqgvRv joImmei6duQ5La355/lpGHSQpJtFLtVi5OJj8a5Y/FCj3iRw+BUNlODLiKa+aNpO AzA9wY/WigxgBrLpvHluz+Uce9GmVgmMBEJpLX1JS9YxP2tkhNOvNGNuryM4XbVG SvFVQU4hexflHRua8K7ACHT5UfmGI8SvNQo4KaYcrL82avTi6C+iYZXyVfXvLb5N vu/t2yHSImTp0QuNoOU6iTBwXXdKmXBzS390NSWiA2MW4D+QRPFLYsmA4PUF4UaJ YmqheBjx4LTm7FEMYsyNSWHdu/xBShlBy7XtwzN5yjFfWN+8fi9CzCb+6OcgQiVv A75OtTbMTiGEFM+lJjpQ =yQr/ -----END PGP SIGNATURE----- --wzJLGUyc3ArbnUjN--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |