This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [coreutils] Bug in du with -x flag?
- From: Andrey Repin <anrdaemon at freemail dot ru>
- To: Ryan Johnson <ryan dot johnson at cs dot utoronto dot ca>, cygwin at cygwin dot com
- Date: Sun, 7 Apr 2013 04:34:15 +0400
- 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> <51603468 dot 7040206 at cs dot utoronto dot ca>
- Reply-to: Andrey Repin <cygwin at cygwin dot com>
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