X-Recipient: archive-cygwin@delorie.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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=CidVzvLOIeydLgf/
	GtStcusK+qzM63Q0sYdnxEl/Fu8dfLxMp3S6iUXc2xykns0hue51objSPZ+aaJ3W
	1BO1vf1YExyVIPYbFZo0LSmy98ErtFhmj4RzVyYlOWfun+b0iHkVFX4mVDaiz6eh
	Lvj4YKVRo2JXuTttrcpewGan804=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=tE3Sg2aDyx0Q60Bbhskypf
	c0eCQ=; b=HkKvQnVwVlhH98957VUYX2FjzjMQX5djAmOyX0acNAgiZpdPvH1TVl
	U/Dy1QmVouGdNYdZJhMHl1Tid5v9aI/wzCk1nEgxjvlSktiYEmit0f6BsIF7qOtr
	CY93IAT7odGVKVkk3xTTRhJGvHYWr5K38lDHejA0GGLDWz1vc4xr0=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED,SPF_SOFTFAIL,TW_CX,TW_RW,TW_WX,TW_XH autolearn=no version=3.3.1
Date: Sun, 7 Apr 2013 04:34:15 +0400
From: Andrey Repin <anrdaemon@freemail.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <35397138.20130407043415@mtu-net.ru>
To: Ryan Johnson <ryan.johnson@cs.utoronto.ca>, cygwin@cygwin.com
Subject: Re: [coreutils] Bug in du with -x flag?
In-Reply-To: <51603468.7040206@cs.utoronto.ca>
References: <515F6598.3080102@gmail.com> <1589865066.20130406154852@mtu-net.ru> <51603468.7040206@cs.utoronto.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Ryan Johnson!

>>>    I always used to use du with the -cxhs options, but since updating to the
>>> latest (8.15-1) version there appears to be a problem caused by -x:
>>>> $ ls -la
>>>> total 392188
>>>> drwxr-xr-x+ 1 DKAdmin None         0 Apr  6 00:35 .
>>>> drwxr-xr-x+ 1 DKAdmin None         0 Apr  3 05:58 ..
>>>> drwxr-xr-x+ 1 DKAdmin None         0 Apr  3 16:28 gcc4
>>>> -rw-r--r--  1 DKAdmin None 401599997 Apr  6 00:43 gcc472-2-dist.tar.bz2
>>>>
>>>> $ du -xh gcc472-2-dist.tar.bz2
>>>>
>>>> $ du -h gcc472-2-dist.tar.bz2
>>>> 383M    gcc472-2-dist.tar.bz2
>>>>
>>>> $
>>>    Unless I'm misunderstanding it badly, -x shouldn't make any difference when
>>> counting a real file in the current directory.  I wonder if it could have
>>> perhaps been introduced by the recent related bugfix that I read about in
>>> /usr/share/doc/coreutils/NEWS:
>>>>    du -x no longer counts root directories of other file systems.
>>>>    [bug introduced in coreutils-5.1.0]
>>> or perhaps some interaction between that and Cygwin's path conversion code?
>> 401599997/1024/1024 = 382.985Mb
>> Seems proper to me.
> The problem is not the size reported by du -h... it's that du -x doesn't 
> list the file at all.

Sorry, I misread your original post...


--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 07.04.2013, <04:33>

Sorry for my terrible english...


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

