delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/01/26/06:07:04

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 26 Jan 2011 12:06:28 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: du weird results under samba share
Message-ID: <20110126110628.GL28470@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4D3F6A62 DOT 1060705 AT laposte DOT net>
MIME-Version: 1.0
In-Reply-To: <4D3F6A62.1060705@laposte.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019