Operating System - HP-UX
1753936 Members
9295 Online
108811 Solutions
New Discussion юеВ

SAMBA(CIFS) and disk space reporting

 
SOLVED
Go to solution
Dan Alexander
Frequent Advisor

SAMBA(CIFS) and disk space reporting

Curious...
When I map a SAMBA share on my PC, and look at the disk space capacity/total/free, it is way off what the same server reports with bdf or df..etc...
In some instances, the differences are quite big...100MB or more!

Can anyone explain the big difference?
3 REPLIES 3
harry d brown jr
Honored Contributor

Re: SAMBA(CIFS) and disk space reporting

bdf is a modified df. Both show output in blocks of 512 or 1024 characters per. A Gigabyte is NOT 1,000,000,000 it is 1024*1024*1024 which is 2097152; 512 byte blocks.

M$ does the same.

live free or die
harry
Live Free or Die
Dan Alexander
Frequent Advisor

Re: SAMBA(CIFS) and disk space reporting

Thanks Harry...
Would you mind elaborating a littte on your answer...still confused a bit..
harry d brown jr
Honored Contributor
Solution

Re: SAMBA(CIFS) and disk space reporting


A GIGABYTE is 1,073,741,824 bytes (1024 times 1024 times 1024)
not ..........1,000,000,000 bytes (this is just a billion bytes)

blocks of disk data are stored in some multiple of 512 chracters.

Let's say a filesystem uses blocks of 512 bytes. When a file needs to store 513 bytes it will consue TWO (2) 512 byte blocks (1024 characters). If a file only needs 511 or 512 characters, then it will only consume ONE (1) 512 byte block.


live free or die
harry
Live Free or Die