du weird results under samba share

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Jan 26 13:27:00 GMT 2011


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



More information about the Cygwin mailing list