[Samba] display disk size and free space

Christoph Litauer litauer at uni-koblenz.de
Fri Jul 22 08:44:22 GMT 2005


Hi,

using samba 3.0.X I have the following situation:

I defined a share [lab] with path = /lab
/lab in fact is bound to an automounter map containing about 20
mountpoints so that (under linux) I am able to access
/lab/A
/lab/B
...

I want the same situation using windows. My [lab] share enables me to use
\\fileserver\lab\A
\\fileserver\lab\B
...

So far so good. But the data concerning disk size and free disk space
showed up by windows explorer is wrong (20 MB disk size and 0 Byte
free). This is because samba doens't get the disk usage for e.g. /lab/A
but for /lab, which is the defined pathname of share [lab].

samba complains about

[2005/07/21 14:31:31, 3] lib/sysquotas.c:sys_get_quota(413)
  sys_get_vfs_quota() failed for mntpath[/lab] bdev[automount(pid1844)]
qtype[2]

which is in fact correct because it cannot get disk usage from an
automounter mountpoint.

Now my questions:
1.) If sys_get_vfs_quota() fails, why does windows show 20 MB disk space
and 0 Byte free? Wouldn't it be more sensfull to report unlimited free
space?

2.) Has anybody a solution for my situation without specifying a single
share for each /lab/xxx-mountpoint?

-- 
Regards
Christoph
________________________________________________________________________
Christoph Litauer                  litauer at uni-koblenz.de
Uni Koblenz, Computing Center,     http://www.uni-koblenz.de/~litauer
Postfach 201602, 56016 Koblenz     Fon: +49 261 287-1311, Fax: -100 1311
PGP-Fingerprint: F39C E314 2650 650D 8092 9514 3A56 FBD8 79E3 27B2




More information about the samba mailing list