[Samba] Directory size display discrepency

Buchan Milne bgmilne at cae.co.za
Tue Oct 15 15:40:59 GMT 2002


 > Message: 10
 > Subject: Re: [Samba] Directory size display discrepency
 > From: Stephen Kitchener <steve.kitchener at aspentech.com>
 > To: samba lists <samba at lists.samba.org>
 > Date: 15 Oct 2002 11:30:46 +0100 Hi Micheal
> 
>> Subject: Re: [Samba] Directory size display discrepency

> Thanks for clearing that up - I did think that is was just a 'windows
> thing' but had to find out.
> 

It may not be. What version of samba are you running? I think up to 
2.2.3a, and maybe 2.2.4, samba wasn't calculating this correctly.

> 
>> 
>> I'm assuming that the directory contents actually do total around 33
>> bytes. It's been a while since I used a DEC so I don't remember how its
>> "du" handles the size of small directories. If you use "ls -l" you'll
>> probably see that the directory shows 4096 as the size.
>> 
>> On Mon, Oct 14, 2002 at 11:55:52AM +0100, Stephen Kitchener wrote:
> 
>> > When I slect properties of a directory it has two enties
>> > Size and Size on disk
>> > As an example size says 33 bytes, size on disk says 512kb and if I du a
>> > du -ks on the directory it reports 4 k.
> 

stat the file, and multiply by the blocks by the block size, and you 
should be seeing the same size that windows reports in 'size on disk'. 
If you don't, there is a problem.

This works fine for me with 2.2.5 (to the byte) on linux.

Regards,
Buchan

-- 
|----------------Registered Linux User #182071-----------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7




More information about the samba mailing list