delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/01/31/09:59:59

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:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=YfdZos2CQkIgnCvb
64KIhFnRsyDlC9pzDrUH3X9XeuqgQklybsqU7OLtO48GvyqV0BjlnptNCy36FzfO
SUxmQlHfXATEzChDGKsyqJ3/3gQXEeZ9NdpUl6UhENoKidNHYcxqeEogpf6NID2T
5697VxV8Bar+L4S04sNXCXn9Uco=
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:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=V6oIHaFwxYHpMySC6FiABf
EqJCo=; b=UN7tePiXMko8SomPCQJc/psbe4cWdm3FavMS7mUfYt6wC3Cl2KLjlo
+8PH31wS8A2ite7w1yrLQu+TeyXkiKPVoVxpMkVjK6XWNPCgzESsAkO2BZ618lVV
UJCw3LLI2lDtkq01CPlzNAy54O98Gc8l+44k2ZGAljx1xDVowAvA8=
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-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=
X-HELO: smtp-out-no.shaw.ca
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: hardlinks on directories?
To: cygwin AT cygwin DOT com
References: <20200130181516 DOT GA29782 AT tik DOT uni-stuttgart DOT de> <f0e439a1-652d-ad83-54c3-87c6661df8f7 AT redhat DOT com> <20200131101755 DOT GA5074 AT tik DOT uni-stuttgart DOT de>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Message-ID: <bd6b2c71-670b-6d1b-fc01-10e5d0f033d5@SystematicSw.ab.ca>
Date: Fri, 31 Jan 2020 07:59:01 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1
MIME-Version: 1.0
In-Reply-To: <20200131101755.GA5074@tik.uni-stuttgart.de>
X-IsSubscribed: yes

On 2020-01-31 03:17, Ulli Horlacher wrote:
> On Thu 2020-01-30 (12:26), Eric Blake wrote:
> 
>>> Are this directory hard links?
>>
>> No, rather they are parallel mount points (the same directory mounted 
>> under two different names).
> 
> /: mount
> C:/cygwin64/bin on /usr/bin type ntfs (binary,auto)
> C:/cygwin64/lib on /usr/lib type ntfs (binary,auto)
> C:/cygwin64 on / type ntfs (binary,auto)
> C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
> 
> That's it! Thanks!
> 
> But why does Cygwin mount the directories /usr/bin and /usr/lib extra?

$ cmd /c dir `cygpath -aw /usr`
...
2020-01-30  17:51    <DIR>          include
2020-01-19  13:55    <DIR>          libexec
2019-09-29  13:38    <DIR>          local
2020-01-19  13:55    <DIR>          sbin
2020-01-19  13:56    <DIR>          share
2016-10-25  14:43    <DIR>          src
2019-12-18  11:07    <DIR>          tmp
...

No /usr/bin nor /usr/lib.

> Why not a symbolic link?

Mounts ensure the paths exist and are identical to /bin /lib.

> And which process does this mounting?

Every Cygwin process at startup performs those mounts and any alternatives in
/etc/fstab and /etc/fstab.d/*, see "Cygwin User's Guide", Chapter 3. Using
Cygwin, /The Cygwin Mount Table/:

	http://cygwin.com/cygwin-ug-net/using.html#mount-table

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
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

- Raw text -


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