← Back to team overview

desktop-packages team mailing list archive

[Bug 1401917] Re: GVFS Samba mounts time out after inactivity

 

This is interesting to know that gvfs does not do this SMB Echo Request...
That is a pity, because gvfs is as simple as the "net use" command on Windows, and uses the Kerberos ticket, so it is a very interesting tool for companies trying to migrate to Ubuntu for desktops.

Currently, as a workaround, I did a small bash script that does exactly
this (with the ls command) and which I run after user login :

#!/bin/bash
cd /run/user/$UID/gvfs/
while true
do
	for i in ./smb* ; do
		if [ -d "$i" ]; then
			ls $(basename "$i")/ &> /dev/null
		fi
	done
	sleep 120
done

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/1401917

Title:
  GVFS Samba mounts time out after inactivity

Status in gvfs package in Ubuntu:
  Confirmed

Bug description:
  In Ubuntu 14.04, gvfs version 1.20.1.-1ubuntu1, Samba mounts time out
  after a period of inactivity. I did some network traffic logging
  between gvfs and cifs as any samba mounts via cifs never time out.

  I discovered that CIFS periodicly sends an SMB Echo Request packet to
  keep the socket connection open while GVFS fails to do this. As a
  result a file server may kill the inactive connection however the
  mount inside of the file browser stays around. As a result, attempts
  to access the disconnected share results in waiting for an error box
  to pop up just so it can be unmounted and remounted.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1401917/+subscriptions


References