[Samba] Free space calculation gets it wrong

Alexander Skwar listen at alexander.skwar.name
Fri Feb 11 08:22:31 GMT 2005


Thomas M. Skeren III schrieb:

> Probably the only way you will get what you want.

No.

>  I don't think Windows 
> can understand how a directory on a "drive" can be larger than the 
> "drive" itself.

Yes, it can.

We have a DFS Share called "apps" assigned to our AD called
"EUROPE".

C:\>dir \\europe\apps
 Volume in Laufwerk \\europe\apps: hat keine Bezeichnung.
 Volumeseriennummer: EC62-031C

 Verzeichnis von \\europe\apps

2005-01-04  06:44    <DIR>          .
2005-01-04  06:44    <DIR>          ..
2004-01-05  03:27    <DIR>          Apps
[...]
               1 Datei(en)          2.284 Bytes
              13 Verzeichnis(se),  3.711.651.328 Bytes frei

C:\>dir \\europe\apps\Apps
 Volume in Laufwerk \\europe\apps: hat keine Bezeichnung.
 Volumeseriennummer: EC62-031C

 Verzeichnis von \\europe\apps\Apps

2005-02-10  09:22    <DIR>          .
2005-02-10  09:22    <DIR>          ..
2004-11-19  14:46    <DIR>          3DXWare_3515
[...]
               0 Datei(en)              0 Bytes
             117 Verzeichnis(se), 366.936.690.688 Bytes frei

As you can see, in the "directory" "apps" there's about
3,7 GiB of free space. In the directory "apps\Apps",
there's about 366 GiB of free space.

When I connect \\EUROPE\apps to R: and do
a "dir R:\" command, I also see 3,7 GiB of free
space. Doing "dir R:\Apps" shows 366 GiB of free
space.

So, obviously there has to be a way to determine
the free space available in a directory, as you
can see in the examples shown above.

Anyone out there, who might have an idea about
how I can make Samba return the free space available
in a given directory instead of in the top level directory
of a share?

Thanks a lot,

Alexander Skwar
-- 
Wonder is the feeling of a philosopher, and philosophy begins in wonder.
		-- Socrates, quoting Plato
	[Huh?  That's like Johnson quoting Boswell]
_·¯·_·¯·_·¯·_·¯·_ äöüßÄÖÜæœłø¼½¾¤¹²³¢€£¥¶§¬÷×±©®™¡¿♪ ¯·_·¯·_·¯·_·¯·_·¯


More information about the samba mailing list