delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/04/06/10:43:12

X-Recipient: archive-cygwin AT delorie DOT 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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=cPoHNm9mnTT77BsCGD218OZl57eB9KBksHpjmelgOk4
NVYXYD6ljErD2n17obw3qb9vmjs0pUA3OiMVwmFm76+Um28I93KpHEEjPrRJpJRO
dlUN6wL/AiB8jTF9TNJO1yymmuCE101d7Xw+nI8wLLIEPM7EJ7ZO1oS6jt9M72+U
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=yusGxdOLnrz2tFKXjZ1TTXlILXU=; b=IFd5dlX8NL7SC21gm
U4GYV83Ou5tMPZSfpAYYR7dz+Zxp2Kq1MBtorr2k1KPH8PQ6CGZw0ag8YDYWHqNt
Gi0NOwpmlCLVdY0NeIc/HixKjMwX/ndqYPpzl2/mLFUfvJyOzHsa6nJoIyXJFAw7
HQTrKqrD7yBvsgDdgPHdx3k4Fs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_40,KHOP_RCVD_UNTRUST,KHOP_THREADED,MAY_BE_FORGED,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_NEUTRAL,TW_CX,TW_RW,TW_WX,TW_XH autolearn=ham version=3.3.1
Message-ID: <51603468.7040206@cs.utoronto.ca>
Date: Sat, 06 Apr 2013 10:42:48 -0400
From: Ryan Johnson <ryan DOT johnson AT cs DOT utoronto DOT ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [coreutils] Bug in du with -x flag?
References: <515F6598 DOT 3080102 AT gmail DOT com> <1589865066 DOT 20130406154852 AT mtu-net DOT ru>
In-Reply-To: <1589865066.20130406154852@mtu-net.ru>

On 06/04/2013 7:48 AM, Andrey Repin wrote:
> Greetings, Dave Korn!
>
>
>>      Hi list,
>>    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.

Ryan


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

- Raw text -


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