rdesktop stats all /media dirs when copying files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rdesktop (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: rdesktop
I have a few SSHFS FUSE mounts in /media (along with CIFS and NFS mounts)
If the SSHFS connection has dropped then I can reconnect by trying to access the dir e.g. ls /media/sshmount, this will reconnect in the background and present the files after a few seconds.
When I am in rdesktop and try to copy files using the -rdisk switch to share a local dir remotely (I use -rdisk:
If I strace rdesktop I can see it trying to stat every mount and when it hits one of the SSHFS mounts where the connection has dropped it locks up there. Normally fuse can reconnect in the background but this doesn't happen with rdesktop.
The interesting bit of strace is below:
select(7, [3 6], [], NULL, {60, 0}) = 1 (in [6], left {60, 0})
gettimeofday(
recv(6, "\2\360\
fstat64(8, {st_mode=
send(6, "\3\0\0[
read(3, 0x83d400c, 4096) = -1 EAGAIN (Resource temporarily unavailable)
select(7, [3 6], [], NULL, {60, 0}) = 1 (in [6], left {60, 0})
gettimeofday(
recv(6, "\3\0\0Z", 4, 0) = 4
read(3, 0x83d400c, 4096) = -1 EAGAIN (Resource temporarily unavailable)
select(7, [3 6], [], NULL, {60, 0}) = 1 (in [6], left {60, 0})
gettimeofday(
recv(6, "\2\360\
statfs64(
stat64(
open("/
fstat64(20, {st_mode=
mmap2(NULL, 4096, PROT_READ|
read(20, "rootfs / rootfs rw 0 0\nnone /sys"..., 1024) = 1024
read(20, "me=dmansell,
read(20, "=2.11.1.3 0 0\n192.
read(20, "ow_other,
read(20, "", 1024) = 0
_llseek(20, 0, [0], SEEK_SET) = 0
read(20, "rootfs / rootfs rw 0 0\nnone /sys"..., 1024) = 1024
stat64("/", {st_mode=
stat64("/sys", {st_mode=
stat64("/proc", {st_mode=
stat64("/dev", {st_mode=
stat64(
stat64("/", {st_mode=
stat64(
stat64("/var/run", {st_mode=
stat64("/var/lock", {st_mode=
stat64(
stat64("/dev/shm", {st_mode=
stat64("/dev/pts", {st_mode=
stat64("/var/run", {st_mode=
stat64("/var/lock", {st_mode=
stat64("/var/run", {st_mode=
stat64("/var/lock", {st_mode=
stat64("/boot", {st_mode=
stat64("/home", {st_mode=
read(20, "me=dmansell,
stat64(
stat64(
stat64(
stat64("/media/c", {st_mode=
stat64(
stat64(
stat64(
read(20, "=2.11.1.3 0 0\n192.
stat64(
stat64(
stat64(
stat64(
and thats where it hangs. If I ensure all mounts are ok before running rdesktop there is no problem.
Please let me know if you need any more information.