Menu

#355 rdesktop + autofs: not enough space

open
nobody
Internals (36)
5
2012-11-29
2012-03-22
No

I have server with Windows Server 2008 R2 Datacenter, Service Pack 1. The client is Linux with rdesktop 1.7.x.
The client redirects a directory which is managed by autofs.
So, the command line looks like this:

rdesktop -r disk:flash=/media/ <ip>:<port>

After connecting (or before) I insert my usb flash drive and autofs mounts it to /media/sdb4.
In terminal session I open two file manager windows ("My computer"). In one I open my redirected directory and enter "sdb4" directory. In the second window I open any random directory containing some files.
Then I try to drag-and-drop some file to directory "sdb4". And I get a message:

"There is not enough space on flash on localhost. You need and additional 16,0 KB to copy these files".

The size of needed space is always exactly equals the file size.
If I disable autofs, copying files works without problems.

I found interesting old patch: http://marc.info/?l=rdesktop-devel&m=120277506220735

It seems to be already integrated to rdesktop. But this patch affects function "disk_set_information". I can't find the place where this check performs (or should be done) when the new file is created.

Discussion