| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <43BDF398.2000205@tlinx.org> |
| Date: | Thu, 05 Jan 2006 20:35:36 -0800 |
| From: | "Linda A. Walsh" <cygwin AT tlinx DOT org> |
| User-Agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
| MIME-Version: | 1.0 |
| To: | "'Cygwin List'" <cygwin AT cygwin DOT com> |
| CC: | Eric Blake <ebb9 AT byu DOT net> |
| Subject: | link count wrong for pseudo-dirs (?); find gets confused |
| References: | <43B74F6F DOT 5050406 AT tlinx DOT org> <43BA8103 DOT 5050305 AT byu DOT net> |
| In-Reply-To: | <43BA8103.5050305@byu.net> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| 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 |
You may have not had a chance to drill into the details of the
"cygcheck.out" I attached last email, but...
Eric Blake wrote:
> Without further info, my guess is that it may be related to the snapshots
>
>simulating the existance of /proc and /cygdrive, but neglecting to update
>the link count of / accordingly. I noticed on my own system the following
>behavior:
>
>
----
You know, thinking about this -- it sounds like my problem
is related to what you are talking about, _but_ I'm not
running a snapshot (as I understand it).
Side note: I don't have /proc show up in my root when I 'ls'.
Do you have a dummy entry created?
Anyway, my "cygdrive"="null". I.e. my mapped drives
map onto my root drive. So not only is my "/" equal to "\"
on my "$SYSTEMDRIVE" (C:), but my drives show up mounted under
"/" as "/a", "/b", "c"...
I also get different numbers of subdirectories when I list
"/" than what the "link" count says and a third number if I list
using "cygpath -w":
$ ls -ldF /
drwxr-x--- 31 law 0 Dec 31 1969 // ## 31 links
$ cmd /c dir |grep DIR|wc -l
24 ## 24 dirs seen by windows
24
$ ls -1F|grep "/"|wc -l ## ***Find note below
ls: pagefile.sys: No such file or directory
ls: d: No such file or directory ## (removable disk)
ls: e: No medium found ## (cd/dvd drive)
38 ## 38 dirs seen by ls
----
$ ls -1F `cygpath -w /`|grep "/"|wc -l
ls: C:\/pagefile.sys: No such file or directory
29 ## 29 dirs?: not sure this is relevant?
---
***Find doesn't inspect the last 9 subdirectories of this
ls listing.
Hope this gives some more info to go on.
I emphasize -- this isn't a 'snapshot' as I understand it,
it was downloaded through "setup.exe".
Let me know if you want any more info or to try any test
cases.
Linda
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |