Samba dfree problems

laesq laesq_ra at yahoo.co.uk
Fri Mar 23 13:25:32 GMT 2007


Hi,

I've been trying to get Samba to display the free space of drives correctly
on windows clients.

Let me show you my file system layout:

/
|--- Mnt
       |--- Storagei (mounted drive)
       |--- Storageii (mounted drive)
       |--- TempStore (mounted drive)

Ok, so as you can see, I have three drives mounted in /mnt. They all work
fine and I'm able to copy files back and forth with no problems.

In my Samba config I share Mnt as Public. Windows clients map a drive to
Public and that's fine. If I try and get the free space of one of the
mounted drives from a windows client, it just returns the size and free
space of /.

The reason I want to get sizes from the drives is that with the advent of
windows vista, this first checks the free space of the destination drive
before files are copied to it. Now if a user wants to copy a 2GB file to one
of the mounted drives and I have less than 2GB free on / then then vista
tells me I can't copy the files as there's not enough  space, even though
the mounted drives all have way over 2GB free.

Now ideally I'd like to have Samba report the correct free space of the
mounted drives. But if that's not possible, a simple faked free space being
returned to windows clients would be equally useful.

I have tried using the dfree command option in smb.conf but I get error
messages as follows:

[2007/03/22 15:33:02, 0] smbd/dfree.c:disk_free(117)...
disk_free: sys_popen() failed for command /usr/local/bin/dfree .. Error was
: No child processes... 

The script file I have at /usr/local/bin is named dfree. I have tried it's
contents to be a df command which worked when run normally from the shell. I
have also tried the contents as a simple echo "large number large number".
Both execute fine from the shell, but they give the same errors in my samba
log files.

I have also tried to add a line in the script file that creates a log file.
Again, if run from the shell, it works. But when samba attempts to run it, I
get the same errors in the log file.

The version of samba I'm running is smbd version 3.0.20a-2.2.cc. It's got
the CC suffix as I'm running Clarkconnect and it's part of that distro.

Any help or pointers would be greatly appricated.
Regards,
LaesQ

-- 
View this message in context: http://www.nabble.com/Samba-dfree-problems-tf3453846.html#a9634804
Sent from the Samba - samba-technical mailing list archive at Nabble.com.



More information about the samba-technical mailing list