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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=Sg1gKz4O30BjT1Uj IVX2dKxHvdWHRCejy4XQIJQAE5Tq5crF8gHzkRxo+bimIiWeO79a3zvNRI/YgPMk yiEHDmNS67XEYnslF5bu+BBaX6dqibYovcIOqK9G9u5BlNjecg3SYdEea+g5JCVl AnVQbLwIQviYA8dOjC3GIjVn+p0= 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=pmCkqlPtG7EYm9dkHEDzr3 scobk=; b=Rp6+9fVsC041Gr3DoJg0+FhontFdCxShl8NEfRTu+8WQvUd2pSahoj bq8KtWY+phb4KpOsKfyGg0Qe8e5tB5G71riSfCI3ZFmCWcAjoNSnPAp96sfkQlyi ZoNvgNapyqcHDk8NZOhnZzVeZGvPdeu7dtirVY88N081/nkPZfl4s= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED,SPF_SOFTFAIL,TW_CX,TW_RW,TW_WX,TW_XH autolearn=no version=3.3.1 Date: Sat, 6 Apr 2013 15:48:52 +0400 From: Andrey Repin Reply-To: Andrey Repin Message-ID: <1589865066.20130406154852@mtu-net.ru> To: Dave Korn , cygwin AT cygwin DOT com Subject: Re: [coreutils] Bug in du with -x flag? In-Reply-To: <515F6598.3080102@gmail.com> References: <515F6598 DOT 3080102 AT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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. -- WBR, Andrey Repin (anrdaemon AT freemail DOT ru) 06.04.2013, <15:47> 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