Subject: Re: bug#11316: coreutils 8.16: du

From: Pádraig Brady <[email-masked]>
Date: Tue, 24 Apr 2012 10:06:52 +0100

On 04/24/2012 09:59 AM, [email-masked] wrote:
> Hello Paul,
> 
>  
> 
> to make tusc-output a little more readable I removed all the syscalls
> around lib-loading and gave "du" only a single file:
> 
> # ls -als inspection_item.lst
> 
> 1282246 -rw-r-----   1 xxx      xxx        1312994526 Apr 24 01:07
> inspection_item.lst
> 
>  
> 
> As you can see, HP-UX ls -s outputs 1k blocks while Files on Solaris
> NFS-Servers and Files on local Volumes are reported in 512 Byte blocks.

Could be related to this comment:

/* HP-UX counts st_blocks in 1024-byte units.
   This loses when mixing HP-UX and BSD file systems with NFS.  */

at:

http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/stat-size.h;hb=HEAD#l82

cheers,
Pádraig.