From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5728 invoked by alias); 31 Jan 2020 14:59:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 5714 invoked by uid 89); 31 Jan 2020 14:59:08 -0000 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 Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 31 Jan 2020 14:59:04 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id xXl8iWHcWnCigxXl9ipYpQ; Fri, 31 Jan 2020 07:59:03 -0700 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: hardlinks on directories? To: cygwin@cygwin.com References: <20200130181516.GA29782@tik.uni-stuttgart.de> <20200131101755.GA5074@tik.uni-stuttgart.de> From: Brian Inglis Message-ID: Date: Fri, 31 Jan 2020 14:59:00 -0000 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 X-SW-Source: 2020-01/txt/msg00336.txt.bz2 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