delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/11/02:44:52

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
From: Paul Shabash <pshabash AT altair DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Thu, 11 Feb 2010 02:44:13 -0500
Subject: RE: du returns inconsistent results
Message-ID: <7232A3A7C53F634B8E91E65BC7833C5112D3963FC5@TR-EXCH07.prog.altair.com>
MIME-Version: 1.0
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

Hello,

When I run "du -b dir" several times with the same directory as input, some=
times I get a smaller size the first time I run it than the subsequent time=
s I run it. =A0I.e. the second, third, fourth, etc. try will all return ide=
ntical sizes, but the first is smaller.
The difference in size is always a multiple of 4096.
Doesn't happen if the input is a file.=A0 Only if it's a directory.  The mo=
re subdirectories it has, the larger the difference.

Does anyone know what might be causing this?

The error appears using either cygwin 1.7.1-1 or 1.5, on both Windows Vista=
 & on Windows 7.
It does NOT happen on Windows XP with cygwin 1.5, though.

(Yes, I know there was a question on this list with a similar subject, but =
the question was different.)

Thank you.
Paul


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