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: List-Subscribe: List-Archive: List-Post: List-Help: , 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> <20200131101755 DOT GA5074 AT tik DOT uni-stuttgart DOT de> From: Brian Inglis Message-ID: 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> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 include 2020-01-19 13:55 libexec 2019-09-29 13:38 local 2020-01-19 13:55 sbin 2020-01-19 13:56 share 2016-10-25 14:43 src 2019-12-18 11:07 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