Automount / Autofs not timing out and unmounting usb flashkey
Andy Green
fedora at warmcat.com
Sun Oct 3 21:12:26 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi folks -
Just noticed on two machines tracking the Development branch, that autofs
seems to be ignoring --timeout. Eg:
/etc/auto.master:
/misc /etc/auto.misc --timeout=2
/etc/auto.misc:
usbautocam
- -fstype=vfat,nosuid,nodev,sync,dirsync,uid=99,gid=99,umask=000 :/dev/sda1
mount shows autofs running:
...
automount(pid6032) on /misc type autofs
(rw,fd=4,pgrp=6032,minproto=2,maxproto=4)
On device insertion, it is automounted:
...
automount(pid6032) on /misc type autofs
(rw,fd=4,pgrp=6032,minproto=2,maxproto=4)
/dev/sda1 on /misc/usbautocam type vfat
(rw,nosuid,nodev,sync,dirsync,uid=99,gid=99,umask=000)
However....
[root at fastcat ~]# lsof -n | grep /misc
automount 6032 root 4r DIR 0,18 0 18246 /misc
Okay so nothing is touching the mountpoint /misc/usbautocam. Wait several
seconds and do another mount command to see what is what....
...
automount(pid6032) on /misc type autofs
(rw,fd=4,pgrp=6032,minproto=2,maxproto=4)
/dev/sda1 on /misc/usbautocam type vfat
(rw,nosuid,nodev,sync,dirsync,uid=99,gid=99,umask=000)
Previously the mountpoint would disappear after a couple of seconds, now it is
immortal.
[root at fastcat ~]# rpm -q autofs
autofs-4.1.3-22
Unmounting by hand works okay, and will allow reinsertion of the device, which
is then automounted again. But never auto-unmounted.
- -Andy
- --
http://www.addintelligence.co.uk -- we design custom hardware and software for
your products
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFBYGs+jKeDCxMJCTIRAjQ4AKCC7qciuM+AF2hf1rU/3cAL/eGKKwCeNWb4
X2wMXC01thBUhF21RXfc76I=
=arA1
-----END PGP SIGNATURE-----
More information about the fedora-test-list
mailing list