X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Wed, 26 Jan 2011 12:06:28 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: du weird results under samba share
Message-ID: <20110126110628.GL28470@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4D3F6A62.1060705@laposte.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <4D3F6A62.1060705@laposte.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Jan 26 01:27, Cyrille Lefevre wrote:
> 
> Hi,
> 
> v2$ uname -a
> CYGWIN_NT-5.1 PC213736 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin
> 
> aka
> 
> Windows XP Professional Ver 5.1 Build 2600 Service Pack 3
> 
> samba is :
> 
> Samba version 2.2.8a based HP CIFS Server A.01.10
> 
> aka
> 
> samba 2.2.8a under HP-UX 11.11 (11iv1)

Ouch.  Wasn't that the Samba version Fred Flintstone used at work?

> in some words : there is a factor 8 between the reality and du !
> 
> v2$ du --version
> du (GNU coreutils) 7.0
> 
> same results w/ :
> 
> v2$ /tmp/du --version
> du (GNU coreutils) 8.8
> 
> v2$ ll
> total 3556352
> -rwxr--r-- 1 ???????? expl    786432 2011-01-25 20:24 archive.pst
> -rwxr--r-- 1 ???????? expl 109216768 2011-01-25 20:23 ratp 2006-2007.pst
> -rwxr--r-- 1 ???????? expl 115834880 2011-01-25 20:23 ratp 2008.pst
> -rwxr--r-- 1 ???????? expl  90718208 2011-01-25 20:23 ratp 2009.pst
> -rwxr--r-- 1 ???????? expl 138297344 2011-01-25 20:23 ratp 2010.pst

What does `ls -s' return?  The return value in st_blocks is always a
multiple of 1K(*), which in turn is computed from the "AllocationSize"
value returned by the NtQueryInformationFile function.  Compare that
with `ls -s' on the HP machine.  I wouldn't be surprised if that's a bug
in that Samba version.


Corinna

(*) Well, except on NFS, which I just fixed in CVS.

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

