delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/04/05/19:58:01

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
:content-type:content-transfer-encoding; q=dns; s=default; b=Qur
3y3Iwpsn2fmgFK0PbKWRhyvMquR5ztqVWTM0zmHXlJv+eMUSLzS1SwMb1L0dcm5T
eszFb1Yu8hx5wENWpYOgkBqKlr51sr7O66VwAzLfJkc7FjZyJdehaCrEoLeO6sBi
FgLK95Si7ue/f8vpsEOXK2rEgzVoy64MvGMADp7U=
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
:content-type:content-transfer-encoding; s=default; bh=hFBU9iVeU
9Qbf3lnx8Nr+2x7bV8=; b=PlWmtqCEkPllj4cN2IbSkkpT2uCpxjHlf3VOwTXWS
nBAZBGpy5WsqeXRwckXsYvD6WapDSRmToxZalFfqfK1J5FemhnV4MWIWyF0pgVWG
enn3+RQUBjjxPsw8cODXdH2FTEg9uuX1RYWHXddQTbvVqDjC3mwdrwf7vaYJOptE
wA=
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=-4.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_CX,TW_RW,TW_WX,TW_XH autolearn=ham version=3.3.1
X-Received: by 10.180.87.193 with SMTP id ba1mr1620846wib.10.1365206261817; Fri, 05 Apr 2013 16:57:41 -0700 (PDT)
Message-ID: <515F6598.3080102@gmail.com>
Date: Sat, 06 Apr 2013 01:00:24 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT gmail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: [coreutils] Bug in du with -x flag?

    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?

    cheers,
      DaveK


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