[Bug 1754506] Re: AutoFS does not automatically umount SMB shares

Alexander Lochmann 1754506 at bugs.launchpad.net
Sun Mar 18 18:35:51 UTC 2018


Just a little update: I think I've figured out what causes autofs to stall.
Since I've tested sshfs and cifs, and reproduced it using both, I can rule out a specific target fs. 
I think it has something to do with the indirekt map feature:

#/etc/auto.master
/media/auto-smb/  program:/etc/auto.smb
/media/single-smb/  /etc/auto-single.smb

#/etc/auto.smb
#Same file as shipped with the Ubuntu package.

#/etc/auto-single.smb
* -fstype=cifs,vers=1.0,credentials=/etc/creds/myhost ://myhost/&

Every mount under /media/single-smb/ will automatically disappear after
$timeout. Whereas, a mount under /media/auto-smb/ will *not* disappear.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autofs in Ubuntu.
https://bugs.launchpad.net/bugs/1754506

Title:
  AutoFS does not automatically umount SMB shares

Status in autofs package in Ubuntu:
  Incomplete

Bug description:
  Description:    Ubuntu 17.10
  Release:        17.10

  autofs:
    Installed: 5.1.2-1ubuntu1
    Candidate: 5.1.2-1ubuntu1
    Version table:
   *** 5.1.2-1ubuntu1 500
          500 http://de.archive.ubuntu.com/ubuntu artful/main amd64 Packages
          100 /var/lib/dpkg/status

  Kernel: self-built 4.15.6

  What I expect:
  I expect AutoFS to automatically unmount my samba share after the timeout. However, it does not. The share is still mounted.
  I've turned the autofs debug output in the kernel module. As far as I can tell, the kernel thinks the cifs mount is still busy.

  I'm using the smb automount script provided by the package: /etc/auto.smb. I've just added an additional cifs parameter(vers=2.0).
  My auto.master looks as follows:
  /media/smb/      program:/etc/auto.smb

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



More information about the foundations-bugs mailing list