gnome vfs samba browsing broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-vfs (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Binary package hint: libgnomevfs2-0
Samba browsing works like a charm after login. Gnome vfs sees all samba workgroups and servers:
$ gnomevfs-ls smb:///
workgroup (Regular, application/
lorien (Regular, application/
But after switching between wired and wireless networks, gnome vfs no longer sees any samba workgroups or shares.
$ gnomevfs-ls smb:///
[no output]
After some digging with wireshark, I noticed that the problem is that gnome vfs sends the NMB name lookup requests to the wrong broadcast address.
For example:
1. Let the wired network be: 192.168.5.0/24 (broadcast 192.168.5.255)
2. Let the wireless network be: 192.168.6.0/24 (broadcast 192.168.6.255)
Let's suppose that the wired connection was active when I started my gnome session. Then after switching to the wireless connection gnome vfs still keeps sending NMB name lookup queries to 192.168.5.255 which is WRONG.
Workaround:
$ killall -USR1 gnome-vfs-daemon
Putting the above line in some if-up script make the problem go away.
$ dpkg -l libgnomevfs2-0
ii libgnomevfs2-0 1:2.20.0-0ubuntu3 GNOME Virtual File System (runtime libraries)
closing the bug as deprecated since gvfs is used now