www.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:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
q=dns; s=default; b=czjeKIvFao89TzJD1pTsWKdFwg33xdr9c9QNDM+5hZK | |
/W6wWLkEXdY1gJoBNCpYOd14MPXeazn91YuZd7SrwqPz1UCGciMvvYWSKnS6dAPy | |
4uZIyusjj8AeT9bPm8wM2H0ZFNF4ymc8d1YGZrt6T8VVlQSwVCyiZGs0MaSBSTvQ | |
= | |
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:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
s=default; bh=qh4uj+XVJwm4txYbTp8hDFwwV+Y=; b=OpiI3zeBxjAX5dN+w | |
NnHS7xLkerrL5ThJeim0yoCFIoKAIwc7n+3c6fmjvv7e8UJJ/YeaHhE98HMsxKfe | |
iZF5QnY8N+I8pX7UTdUAMzp/xzYfFkeOBAV13UjgHJjyRWyQYbl8hai5Qt6CPbTP | |
byx2zy/Rru/502Fk5btis4dmvY= | |
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=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:2173, risk |
X-HELO: | Ishtar.sc.tlinx.org |
Message-ID: | <58C1A96D.1030101@tlinx.org> |
Date: | Thu, 09 Mar 2017 11:13:49 -0800 |
From: | L A Walsh <cygwin AT tlinx DOT org> |
User-Agent: | Thunderbird |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Treating Junctions consistently, as "normal dirs" as w/linux "bind"-type mount |
References: | <58A4741E DOT 5020408 AT gmail DOT com> <20170216092611 DOT GE3889 AT calimero DOT vinschen DOT de> <58B0AA58 DOT 30504 AT tlinx DOT org> <20170228214321 DOT GB13542 AT calimero DOT vinschen DOT de> <58C0D744 DOT 2030005 AT tlinx DOT org> <1599023500 DOT 20170309163724 AT yandex DOT ru> <58C1795B DOT 5010809 AT tlinx DOT org> <20170309164113 DOT GC7716 AT calimero DOT vinschen DOT de> |
In-Reply-To: | <20170309164113.GC7716@calimero.vinschen.de> |
X-IsSubscribed: | yes |
Corinna Vinschen wrote: > He's right. The mount point handling in Cygwin is based on the > in-memory mount table. ---- I'm not wanting a mount point fake. Just wanting it to look like a normal dir just like the mountvol-junctions. > There's no reasonable way to fake some > reparse point to look like a mount point. We can either handle it > as normal dir, or as symlink. Handling it as normal dir is > problematic in terms of find/rsync ---- T All of the core utils are loop-protected in that respect. same-dev file systems already exist on linux and cygwin. File system loops are already present just using mountvol: > mountvol ... \\?\Volume{578b2172-f917-11e4-b3d9-a0369f15ce28}\ C:\mountedVol\ /mountedVol> mkdir remounted # note, next "2" lines are really 1 wrapped line: /mountedVol> mountvol remounted '\\?\Volume{578b2172-f917-11e4-b3d9-a0369f15ce28}\' So the same volume is mounted at C:\mountedVol and at C:\mountedVol\remounted. > etc, bacause the cross-device > check would fail and files are potentially visited multiple times. > ---- That isn't what happens right now with mountvol: find shows: /> find mountedVol/ -type d mountedVol/ mountedVol/$RECYCLE.BIN mountedVol/$RECYCLE.BIN/S-1-5-21-1885695451-752926663-1105222378-1000 mountedVol/$RECYCLE.BIN/S-1-5-21-1885695451-752926663-1105222378-1025 mountedVol/$RECYCLE.BIN/S-1-5-21-1885695451-752926663-1105222378-500 mountedVol/$RECYCLE.BIN/S-1-5-21-33333-77777-33333-5013 find: File system loop detected; ‘mountedVol/remounted’ is part of the same file system loop as ‘mountedVol/’. mountedVol/System Volume Information I.e. 'find' (and other coreutils) detect the loop even though they are the same file system. Sure, you can find program(s) that are broken and don't detect such loops, but at least the core utils do check -- and besides, no one HAS to create junctions -- they can use symlinks as they do today and no risk of such problems. But treating linkd-junctions the same as mountvol-junctions allows those bind-style mounts that are supported on linux and Windows to be supported on Cygwin. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |