delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/18/19:37:00

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
To: bug-coreutils AT gnu DOT org
Cc: cygwin AT cygwin DOT com, Reini Urban <rurban AT x-ray DOT at>
Subject: Re: bug in du
References: <302d72f2c4cb7d883558c713e211f68b AT NO-ID-FOUND DOT mhonarc DOT org> <Pine DOT GSO DOT 4 DOT 61 DOT 0505161419510 DOT 6277 AT slinky DOT cs DOT nyu DOT edu> <428A7ADF DOT 20409 AT x-ray DOT at> <428B3B5C DOT 60306 AT byu DOT net> <428B408B DOT 7050902 AT byu DOT net>
From: Paul Eggert <eggert AT CS DOT UCLA DOT EDU>
Date: Wed, 18 May 2005 16:36:29 -0700
In-Reply-To: <428B408B.7050902@byu.net> (Eric Blake's message of "Wed, 18 May 2005 07:18:03 -0600")
Message-ID: <87sm0k5coy.fsf@penguin.cs.ucla.edu>
User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)
MIME-Version: 1.0

Eric Blake <ebb9 AT byu DOT net> writes:

> One possible fix is revisiting line 377 in src/du.c in CVS, which
> currently skips hard links only if a file has multiple links.

Sorry, I don't quite follow this.  Don't all the directories in
question have multiple links?  Or, if you're talking about walking
through the directory multiple times and discarding each file you
find, that sounds pretty slow.

> The other fix would be to also check directories for identical
> inodes, and not descending through a directory by a second spelling
> if it has already been visited once.

That makes more sense to me, anyway: directories should be treated
like other files.

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

- Raw text -


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