Unix Extension & "du"
samuel.thibault at ens-lyon.org
Fri Sep 17 17:14:52 GMT 2004
Le ven 17 sep 2004 à 09:33:00 -0700, Jeremy Allison a tapoté sur son clavier :
> 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.
Hum, well... Who defines the standard ? Is it defined, actually ? The
thing is not only to correct linux' smbfs for samba support, but for any
SMB implementation support...
More information about the samba-technical