Mount points and free disk space

rob.leadbeater at lynx.co.uk rob.leadbeater at lynx.co.uk
Wed Oct 3 07:10:18 GMT 2001


Hi,

Following lots of testing recently, I thought I'd share with the list an issue with the way free disk space is evaluated by Samba.

If Samba is used to share out a directory, which has mount points below it, then the amount of disk space reported by Samba is based on the share name rather than the actual amount of space available.

If you look at the following examples, you will see that smbclient (and windows clients) reports that there are 3768400 (ish) KB free in /images rather than 8547972 KB - the sum of the amounts available in the mount points.

I doubt this is a major issue for most people, however its worth checking out if you're not getting the disk space you're expecting.

This behaviour has been observed on both Tru64 Unix 4.0F running Samba 2.2.0 and RedHat 7.1 running Samba 2.2.1a.


Regards,

Rob Leadbeater


extract from smb.conf:

[imaging]
   comment = Imaging Files
   path = /images
   public = yes
   writable = yes
   printable = no
   guest ok = yes
   valid users = root

Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda1              4134932    156484   3768400   4% /
/dev/sda5             15124868  14011080    345484  98% /images/2001/07
/dev/sdb5             15124868  14012284    344280  98% /images/2001/08
/dev/sdb1             15124900  14008556    348036  98% /images/2001/09
/dev/sdc1             15124900   6846420   7510172  48% /images/2001/10

[root at imgrep02 samba]£ smbclient //imgrep02/images
INFO: Debug class all level = 2   (pid 31144 from pid 31144)
Domain=[LYNX-EXPRESS] OS=[Unix] Server=[Samba 2.2.1a]

smb: \>
smb: \> ls
  .                                   D        0  Fri Sep 21 13:21:48 2001
  ..                                  D        0  Fri Sep 21 12:51:55 2001
  2001                                D        0  Fri Sep 21 13:21:49 2001

                64608 blocks of size 65536. 58881 blocks available
smb: \>


This message is intended only for the use of the person(s) ("The intended
Recipient(s)") to whom it is addressed.  It may contain information which
is privileged and confidential within the meaning of applicable law.  If
you are not the intended recipient, please contact the sender as soon as
possible.  The views expressed in this communication are not necessarily
those held by LYNX Express Limited.




More information about the samba mailing list