This is the mail archive of the
mailing list for the Cygwin project.
link count wrong for pseudo-dirs (?); find gets confused
- From: "Linda A. Walsh" <cygwin at tlinx dot org>
- To: "'Cygwin List'" <cygwin at cygwin dot com>
- Cc: Eric Blake <ebb9 at byu dot net>
- Date: Thu, 05 Jan 2006 20:35:36 -0800
- Subject: link count wrong for pseudo-dirs (?); find gets confused
- References: <43B74F6F.email@example.com> <43BA8103.firstname.lastname@example.org>
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
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
$ 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
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html