Unix Extension & "du"

Jeremy Allison jra at samba.org
Fri Sep 17 16:33:00 GMT 2004


On Fri, Sep 17, 2004 at 09:37:59AM +0200, Samuel Thibault wrote:
> Le jeu 16 sep 2004 à 16:44:45 -0700, Jeremy Allison a tapoté sur son clavier :
> > On Fri, Sep 17, 2004 at 12:52:46AM +0200, Samuel Thibault wrote:
> > > while the kernel does (and has always been doing since addition to
> > > 2.5.40)
> > >         fattr->f_blocks = LVAL(p, 8);
> > > I.e. takes it as a number of sectors.
> > 
> > I changed this to number of bytes on disk, not number of sectors, as 
> > there is no POSIX agreement on how many bytes per sector.
> 
> And is there any implementation that sends a number of blocks ?

I don't think so. When I first implemented it I remember getting
annoyed with this (no units specified) so I made it number of bytes.

Jeremy.


More information about the samba-technical mailing list