* Automounter stops after reload signal.
@ 2009-04-09 8:28 Stef Bon
0 siblings, 0 replies; 13+ messages in thread
From: Stef Bon @ 2009-04-09 8:28 UTC (permalink / raw)
To: autofs; +Cc: Ian Kent
[-- Attachment #1: Type: text/plain, Size: 4015 bytes --]
(I've sent this earlier to the autofs maillist but it doesnot appear
there, I do not get a copy also myself)
Hello,
I've been working on a construction which adds an autofs managed
mountpoint to the homedirectory, when:
a. an usb device or more than one is detected when logging in
b. an usb device is plugged in during a session
This looks like:
/home/sbon/Connections
is the base directory for all kinds of connections (network, all kind of
hardware)
Earlier I've been working on a construction to create a browseable
network map here, also with autofs.
Network resources like SMB shares, FTP servers and SSH access is
possible. (SMB via cifs, FTP via curlftpfs/FUSE, SSH via sshfs/FUSE).
Access to Novell networks should also be possible.
Now about devices. When I add a device during my session, the (virtual)
directory Devices is added, and therein my USB stick:
/home/sbon/Connections/Devices/USB_DISK_Pro
Other devices should also appear in this directory.
I do not have published this yet anywhere, but it is simular to the one
you can find here:
http://www.gentoo-wiki.info/Autofs#UDEV_with_autofs
The big difference with my construction is that the mountpoint is *in*
the users homedirectory, not in /media: direct accessible for users from
their homedirectory, where going to a "foreign" place like /media is not
that userfriendly.
Now I've got the following situation:
my mastermap looks like:
/mnt/sd /etc/autofs/auto.sd --timeout=50
+/var/run/autofs/auto.master
and /var/run/autofs/auto.master:
/home/sbon/Connections/Network
/var/run/autofs/session/auto.network.map.sbon --ghost
/home/sbon/Connections/Devices /var/run/autofs/session/auto.usb.map.sbon
--ghost
the automaps are dynamically created maps:
/var/run/autofs/session/auto.usb.map.sbon:
USB_DISK_Pro -fstype=auto :/dev/disk/by-uuid/6891-3786
and /var/run/autofs/session/auto.network.map.sbon:
"FTP" -fstype=ftpfs \
/192.168.0.1 ://192.168.0.1 \
/ftp-stud.fht-esslingen.de ://ftp-stud.fht-esslingen.de
"Windows Network"
-fstype=cifs,credentials="/var/run/safe/sbon/latest/mount.smb.cred" \
"/BONONLINE/ROUTER/sbon" -rw,ip=192.168.0.1 "://ROUTER/sbon" \
"/BONONLINE/ROUTER/bononline" -rw,ip=192.168.0.1
"://ROUTER/bononline" \
"/BONONLINE/ROUTER/mvanklink" -rw,ip=192.168.0.1
"://ROUTER/mvanklink" \
"/BONONLINE/ROUTER/ftp" -rw,ip=192.168.0.1 "://ROUTER/ftp" \
"/BONONLINE/ROUTER/public" -rw,ip=192.168.0.1 "://ROUTER/public" \
"/BONONLINE/ROUTER/cwdocumenten" -rw,ip=192.168.0.1
"://ROUTER/cwdocumenten" \
"/BONONLINE/LFS20060812/sbon" -rw,ip=192.168.0.2
"://LFS20060812/sbon" \
"/BONONLINE/LFS20060812/bononline" -rw,ip=192.168.0.2
"://LFS20060812/bononline" \
"/BONONLINE/LFS20060812/video" -rw,ip=192.168.0.2
"://LFS20060812/video" \
"/BONONLINE/LFS20060812/test" -rw,ip=192.168.0.2
"://LFS20060812/test" \
"/BONONLINE/LFS20060812/public" -rw,ip=192.168.0.2
"://LFS20060812/public"
"SSH access" -fstype=sshfs \
"/192.168.0.1" "://sbon@192.168.0.1:/" \
"/192.168.0.2" "://sbon@192.168.0.2:/"
These maps are created dynamically, by udev (when plugging in a device)
and at login (coldpluggin and the networkmap)
There is a script which is run by udev when a device is removed.
After removal of the usbstick, my maps look like:
/var/run/autofs/auto.master
/home/sbon/Connections/Network
/var/run/autofs/session/auto.network.map.sbon --ghost
The networkmap is unchanged.
After a reload the automounter has stopped. Attached is the relevant
output of the logfile.
This behaviour I get also in siumlar situations. For example, logging in
as sbon, adding a device, then logging in as root in a terminal(konsole
and then su), everything is still ok (the maps above are changed:
mountpoints and maps are added. But when logging out as root, and the
maps are changed again, the automounter stops also.
It looks like the automounter cannot handle the removal of mountpoints
correctly. It will stop.
Stef Bon
[-- Attachment #2: automount.stop.log --]
[-- Type: text/plain, Size: 15398 bytes --]
2009-04-08T13:08:40.686693+02:00 lfs20080510 kernel:<6>usb 6-1.3: USB disconnect, address 4
2009-04-08T13:08:40.714507+02:00 lfs20080510 : The configuration file /etc/autofs.usersession.conf found.
2009-04-08T13:08:40.716559+02:00 lfs20080510 : Parameter DEVICES_NAME not set. Using default.
2009-04-08T13:08:40.770432+02:00 lfs20080510 automount[5948]: re-reading master map /etc/autofs/auto.master
2009-04-08T13:08:40.770586+02:00 lfs20080510 automount[5948]: lookup_nss_read_master: reading master file /etc/autofs/auto.master
2009-04-08T13:08:40.770645+02:00 lfs20080510 automount[5948]: parse_init: parse(sun): init gathered global options: (null)
2009-04-08T13:08:40.770723+02:00 lfs20080510 automount[5948]: lookup_read_master: lookup(file): read entry /mnt/sd
2009-04-08T13:08:40.770791+02:00 lfs20080510 automount[5948]: lookup_read_master: lookup(file): read entry +/var/run/autofs/auto.master
2009-04-08T13:08:40.770826+02:00 lfs20080510 automount[5948]: lookup_nss_read_master: reading master file /var/run/autofs/auto.master
2009-04-08T13:08:40.770868+02:00 lfs20080510 automount[5948]: parse_init: parse(sun): init gathered global options: (null)
2009-04-08T13:08:40.770915+02:00 lfs20080510 automount[5948]: lookup_read_master: lookup(file): read entry /home/sbon/Connections/Network
2009-04-08T13:08:40.772530+02:00 lfs20080510 automount[5948]: st_readmap: state 1 path /mnt/sd
2009-04-08T13:08:40.772572+02:00 lfs20080510 automount[5948]: re-reading map for /mnt/sd
2009-04-08T13:08:40.772612+02:00 lfs20080510 automount[5948]: st_readmap: state 1 path /home/sbon/Connections/Network
2009-04-08T13:08:40.772655+02:00 lfs20080510 automount[5948]: re-reading map for /home/sbon/Connections/Network
2009-04-08T13:08:40.772948+02:00 lfs20080510 automount[5948]: lookup_nss_read_map: reading map file /etc/autofs/auto.sd
2009-04-08T13:08:40.772975+02:00 lfs20080510 automount[5948]: parse_init: parse(sun): init gathered global options: (null)
2009-04-08T13:08:40.772998+02:00 lfs20080510 automount[5948]: st_ready: st_ready(): state = 4 path /mnt/sd
2009-04-08T13:08:40.773021+02:00 lfs20080510 automount[5948]: lookup_nss_read_map: reading map file /var/run/autofs/session/auto.network.map.sbon
2009-04-08T13:08:40.773044+02:00 lfs20080510 automount[5948]: parse_init: parse(sun): init gathered global options: (null)
2009-04-08T13:08:40.773067+02:00 lfs20080510 automount[5948]: st_ready: st_ready(): state = 4 path /home/sbon/Connections/Network
2009-04-08T13:08:40.773103+02:00 lfs20080510 automount[5948]: st_prepare_shutdown: state 1 path /home/sbon/Connections/Devices
2009-04-08T13:08:40.773141+02:00 lfs20080510 automount[5948]: expire_proc: exp_proc = 3051350928 path /home/sbon/Connections/Devices
2009-04-08T13:08:40.773323+02:00 lfs20080510 automount[5948]: expire_cleanup: got thid 3051350928 path /home/sbon/Connections/Devices stat 0
2009-04-08T13:08:40.773360+02:00 lfs20080510 automount[5948]: expire_cleanup: sigchld: exp 3051350928 finished, switching from 5 to 7
2009-04-08T13:08:40.773394+02:00 lfs20080510 automount[5948]: st_shutdown: state 5 path /home/sbon/Connections/Devices
2009-04-08T13:08:40.973483+02:00 lfs20080510 automount[5948]: umount_multi: path /home/sbon/Connections/Devices incl 0
2009-04-08T13:08:40.973568+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Devices/USB_DISK_Pro
2009-04-08T13:08:40.973847+02:00 lfs20080510 automount[5948]: umounted indirect mount /home/sbon/Connections/Devices
2009-04-08T13:08:40.973864+02:00 lfs20080510 automount[5948]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-home-sbon-Connections-Devices
2009-04-08T13:08:40.973916+02:00 lfs20080510 automount[5948]: shut down path /home/sbon/Connections/Devices
2009-04-08T13:08:40.973978+02:00 lfs20080510 automount[5948]: do_notify_state: signal 15
2009-04-08T13:08:40.973989+02:00 lfs20080510 automount[5948]: master_notify_state_change: sig 15 switching /mnt/sd from 1 to 5
2009-04-08T13:08:40.973997+02:00 lfs20080510 automount[5948]: master_notify_state_change: sig 15 switching /home/sbon/Connections/Network from 1 to 5
2009-04-08T13:08:40.974012+02:00 lfs20080510 automount[5948]: st_prepare_shutdown: state 1 path /home/sbon/Connections/Network
2009-04-08T13:08:40.974031+02:00 lfs20080510 automount[5948]: expire_proc: exp_proc = 3051350928 path /home/sbon/Connections/Network
2009-04-08T13:08:40.974127+02:00 lfs20080510 automount[5948]: expire_proc_indirect: expire /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:40.974150+02:00 lfs20080510 automount[5948]: st_prepare_shutdown: state 1 path /mnt/sd
2009-04-08T13:08:40.974159+02:00 lfs20080510 automount[5948]: handle_packet: type = 6
2009-04-08T13:08:40.974169+02:00 lfs20080510 automount[5948]: handle_packet_expire_direct: token 273, name /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:40.974183+02:00 lfs20080510 automount[5948]: expire_proc: exp_proc = 3066383248 path /mnt/sd
2009-04-08T13:08:40.974967+02:00 lfs20080510 automount[5948]: expiring path /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:40.974974+02:00 lfs20080510 automount[5948]: umount_multi: path /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public incl 1
2009-04-08T13:08:40.974978+02:00 lfs20080510 automount[5948]: unmounting dir = /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:40.975015+02:00 lfs20080510 automount[5948]: expire_cleanup: got thid 3066383248 path /mnt/sd stat 0
2009-04-08T13:08:40.975023+02:00 lfs20080510 automount[5948]: expire_cleanup: sigchld: exp 3066383248 finished, switching from 5 to 7
2009-04-08T13:08:40.975027+02:00 lfs20080510 automount[5948]: st_shutdown: state 5 path /mnt/sd
2009-04-08T13:08:40.976955+02:00 lfs20080510 automount[5948]: expired /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:40.976973+02:00 lfs20080510 automount[5948]: dev_ioctl_send_ready: token = 273
2009-04-08T13:08:41.077208+02:00 lfs20080510 automount[5948]: handle_packet: type = 4
2009-04-08T13:08:41.077228+02:00 lfs20080510 automount[5948]: handle_packet_expire_indirect: token 274, name Windows Network
2009-04-08T13:08:41.077263+02:00 lfs20080510 automount[5948]: expiring path /home/sbon/Connections/Network/Windows Network
2009-04-08T13:08:41.077277+02:00 lfs20080510 automount[5948]: umount_multi: path /home/sbon/Connections/Network/Windows Network incl 1
2009-04-08T13:08:41.077312+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/bononline
2009-04-08T13:08:41.077547+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/bononline
2009-04-08T13:08:41.077569+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:41.077693+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:41.077713+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/sbon
2009-04-08T13:08:41.077829+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/sbon
2009-04-08T13:08:41.077849+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/test
2009-04-08T13:08:41.077962+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/test
2009-04-08T13:08:41.077982+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/video
2009-04-08T13:08:41.078091+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/video
2009-04-08T13:08:41.078110+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/bononline
2009-04-08T13:08:41.078215+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/bononline
2009-04-08T13:08:41.078234+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/cwdocumenten
2009-04-08T13:08:41.078336+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/cwdocumenten
2009-04-08T13:08:41.078355+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/ftp
2009-04-08T13:08:41.078454+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/ftp
2009-04-08T13:08:41.078473+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/mvanklink
2009-04-08T13:08:41.078568+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/mvanklink
2009-04-08T13:08:41.078587+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/public
2009-04-08T13:08:41.078681+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/public
2009-04-08T13:08:41.078700+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/sbon
2009-04-08T13:08:41.078789+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/sbon
2009-04-08T13:08:41.078809+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/bononline
2009-04-08T13:08:41.078826+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:41.078841+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/sbon
2009-04-08T13:08:41.078856+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/test
2009-04-08T13:08:41.078870+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/video
2009-04-08T13:08:41.078885+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/bononline
2009-04-08T13:08:41.078900+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/cwdocumenten
2009-04-08T13:08:41.078914+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/ftp
2009-04-08T13:08:41.078929+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/mvanklink
2009-04-08T13:08:41.078943+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/public
2009-04-08T13:08:41.078958+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/sbon
2009-04-08T13:08:41.078998+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER
2009-04-08T13:08:41.079025+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812
2009-04-08T13:08:41.079045+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/Windows Network/BONONLINE
2009-04-08T13:08:41.079063+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/Windows Network
2009-04-08T13:08:41.079078+02:00 lfs20080510 automount[5948]: expired /home/sbon/Connections/Network/Windows Network
2009-04-08T13:08:41.079091+02:00 lfs20080510 automount[5948]: dev_ioctl_send_ready: token = 274
2009-04-08T13:08:41.079117+02:00 lfs20080510 automount[5948]: handle_packet: type = 3
2009-04-08T13:08:41.175131+02:00 lfs20080510 automount[5948]: umount_multi: path /mnt/sd incl 0
2009-04-08T13:08:41.175324+02:00 lfs20080510 automount[5948]: umounted indirect mount /mnt/sd
2009-04-08T13:08:41.175342+02:00 lfs20080510 automount[5948]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-mnt-sd
2009-04-08T13:08:41.175376+02:00 lfs20080510 automount[5948]: handle_packet_missing_indirect: token 275, name Windows Network, request pid 4115
2009-04-08T13:08:41.175401+02:00 lfs20080510 automount[5948]: shut down path /mnt/sd
2009-04-08T13:08:41.175431+02:00 lfs20080510 automount[5948]: dev_ioctl_send_fail: token = 275
2009-04-08T13:08:41.175494+02:00 lfs20080510 automount[5948]: handle_packet: type = 3
2009-04-08T13:08:41.175539+02:00 lfs20080510 automount[5948]: handle_packet_missing_indirect: token 276, name Windows Network, request pid 4115
2009-04-08T13:08:41.175564+02:00 lfs20080510 automount[5948]: do_notify_state: signal 15
2009-04-08T13:08:41.175574+02:00 lfs20080510 automount[5948]: dev_ioctl_send_fail: token = 276
2009-04-08T13:08:41.179184+02:00 lfs20080510 automount[5948]: expire_cleanup: got thid 3051350928 path /home/sbon/Connections/Network stat 0
2009-04-08T13:08:41.179211+02:00 lfs20080510 automount[5948]: expire_cleanup: sigchld: exp 3051350928 finished, switching from 5 to 7
2009-04-08T13:08:41.179236+02:00 lfs20080510 automount[5948]: st_shutdown: state 5 path /home/sbon/Connections/Network
2009-04-08T13:08:41.379363+02:00 lfs20080510 automount[5948]: umount_multi: path /home/sbon/Connections/Network incl 0
2009-04-08T13:08:41.379435+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/SSH access
2009-04-08T13:08:41.379465+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/FTP
2009-04-08T13:08:41.379645+02:00 lfs20080510 automount[5948]: umounted indirect mount /home/sbon/Connections/Network
2009-04-08T13:08:41.379662+02:00 lfs20080510 automount[5948]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-home-sbon-Connections-Network
2009-04-08T13:08:41.379690+02:00 lfs20080510 automount[5948]: shut down path /home/sbon/Connections/Network
2009-04-08T13:08:41.379791+02:00 lfs20080510 automount[5948]: autofs stopped
[-- Attachment #3: Type: text/plain, Size: 140 bytes --]
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 13+ messages in thread* Automounter stops after reload signal.
@ 2009-04-08 16:14 Stef Bon
2009-04-12 14:08 ` Ian Kent
0 siblings, 1 reply; 13+ messages in thread
From: Stef Bon @ 2009-04-08 16:14 UTC (permalink / raw)
To: autofs
[-- Attachment #1: Type: text/plain, Size: 3925 bytes --]
Hello,
I've been working on a construction which adds an autofs managed
mountpoint to the homedirectory, when:
a. an usb device or more than one is detected when logging in
b. an usb device is plugged in during a session
This looks like:
/home/sbon/Connections
is the base directory for all kinds of connections (network, all kind of
hardware)
Earlier I've been working on a construction to create a browseable
network map here, also with autofs.
Network resources like SMB shares, FTP servers and SSH access is
possible. (SMB via cifs, FTP via curlftpfs/FUSE, SSH via sshfs/FUSE).
Access to Novell networks should also be possible.
Now about devices. When I add a device during my session, the (virtual)
directory Devices is added, and therein my USB stick:
/home/sbon/Connections/Devices/USB_DISK_Pro
Other devices should also appear in this directory.
I do not have published this yet anywhere, but it is simular to the one
you can find here:
http://www.gentoo-wiki.info/Autofs#UDEV_with_autofs
The big difference with my construction is that the mountpoint is *in*
the users homedirectory, not in /media: direct accessible for users from
their homedirectory, where going to a "foreign" place like /media is not
that userfriendly.
Now I've got the following situation:
my mastermap looks like:
/mnt/sd /etc/autofs/auto.sd --timeout=50
+/var/run/autofs/auto.master
and /var/run/autofs/auto.master:
/home/sbon/Connections/Network
/var/run/autofs/session/auto.network.map.sbon --ghost
/home/sbon/Connections/Devices /var/run/autofs/session/auto.usb.map.sbon
--ghost
the automaps are dynamically created maps:
/var/run/autofs/session/auto.usb.map.sbon:
USB_DISK_Pro -fstype=auto :/dev/disk/by-uuid/6891-3786
and /var/run/autofs/session/auto.network.map.sbon:
"FTP" -fstype=ftpfs \
/192.168.0.1 ://192.168.0.1 \
/ftp-stud.fht-esslingen.de ://ftp-stud.fht-esslingen.de
"Windows Network"
-fstype=cifs,credentials="/var/run/safe/sbon/latest/mount.smb.cred" \
"/BONONLINE/ROUTER/sbon" -rw,ip=192.168.0.1 "://ROUTER/sbon" \
"/BONONLINE/ROUTER/bononline" -rw,ip=192.168.0.1
"://ROUTER/bononline" \
"/BONONLINE/ROUTER/mvanklink" -rw,ip=192.168.0.1
"://ROUTER/mvanklink" \
"/BONONLINE/ROUTER/ftp" -rw,ip=192.168.0.1 "://ROUTER/ftp" \
"/BONONLINE/ROUTER/public" -rw,ip=192.168.0.1 "://ROUTER/public" \
"/BONONLINE/ROUTER/cwdocumenten" -rw,ip=192.168.0.1
"://ROUTER/cwdocumenten" \
"/BONONLINE/LFS20060812/sbon" -rw,ip=192.168.0.2
"://LFS20060812/sbon" \
"/BONONLINE/LFS20060812/bononline" -rw,ip=192.168.0.2
"://LFS20060812/bononline" \
"/BONONLINE/LFS20060812/video" -rw,ip=192.168.0.2
"://LFS20060812/video" \
"/BONONLINE/LFS20060812/test" -rw,ip=192.168.0.2
"://LFS20060812/test" \
"/BONONLINE/LFS20060812/public" -rw,ip=192.168.0.2
"://LFS20060812/public"
"SSH access" -fstype=sshfs \
"/192.168.0.1" "://sbon@192.168.0.1:/" \
"/192.168.0.2" "://sbon@192.168.0.2:/"
These maps are created dynamically, by udev (when plugging in a device)
and at login (coldpluggin and the networkmap)
There is a script which is run by udev when a device is removed.
After removal of the usbstick, my maps look like:
/var/run/autofs/auto.master
/home/sbon/Connections/Network
/var/run/autofs/session/auto.network.map.sbon --ghost
The networkmap is unchanged.
After a reload the automounter has stopped. Attached is the relevant
output of the logfile.
This behaviour I get also in siumlar situations. For example, logging in
as sbon, adding a device, then logging in as root in a terminal(konsole
and then su), everything is still ok (the maps above are changed:
mountpoints and maps are added. But when logging out as root, and the
maps are changed again, the automounter stops also.
It looks like the automounter cannot handle the removal of mountpoints
correctly. It will stop.
Stef Bon
[-- Attachment #2: automount.stop.log --]
[-- Type: text/plain, Size: 15397 bytes --]
2009-04-08T13:08:40.686693+02:00 lfs20080510 kernel:<6>usb 6-1.3: USB disconnect, address 4
2009-04-08T13:08:40.714507+02:00 lfs20080510 : The configuration file /etc/autofs.usersession.conf found.
2009-04-08T13:08:40.716559+02:00 lfs20080510 : Parameter DEVICES_NAME not set. Using default.
2009-04-08T13:08:40.770432+02:00 lfs20080510 automount[5948]: re-reading master map /etc/autofs/auto.master
2009-04-08T13:08:40.770586+02:00 lfs20080510 automount[5948]: lookup_nss_read_master: reading master file /etc/autofs/auto.master
2009-04-08T13:08:40.770645+02:00 lfs20080510 automount[5948]: parse_init: parse(sun): init gathered global options: (null)
2009-04-08T13:08:40.770723+02:00 lfs20080510 automount[5948]: lookup_read_master: lookup(file): read entry /mnt/sd
2009-04-08T13:08:40.770791+02:00 lfs20080510 automount[5948]: lookup_read_master: lookup(file): read entry +/var/run/autofs/auto.master
2009-04-08T13:08:40.770826+02:00 lfs20080510 automount[5948]: lookup_nss_read_master: reading master file /var/run/autofs/auto.master
2009-04-08T13:08:40.770868+02:00 lfs20080510 automount[5948]: parse_init: parse(sun): init gathered global options: (null)
2009-04-08T13:08:40.770915+02:00 lfs20080510 automount[5948]: lookup_read_master: lookup(file): read entry /home/sbon/Connections/Network
2009-04-08T13:08:40.772530+02:00 lfs20080510 automount[5948]: st_readmap: state 1 path /mnt/sd
2009-04-08T13:08:40.772572+02:00 lfs20080510 automount[5948]: re-reading map for /mnt/sd
2009-04-08T13:08:40.772612+02:00 lfs20080510 automount[5948]: st_readmap: state 1 path /home/sbon/Connections/Network
2009-04-08T13:08:40.772655+02:00 lfs20080510 automount[5948]: re-reading map for /home/sbon/Connections/Network
2009-04-08T13:08:40.772948+02:00 lfs20080510 automount[5948]: lookup_nss_read_map: reading map file /etc/autofs/auto.sd
2009-04-08T13:08:40.772975+02:00 lfs20080510 automount[5948]: parse_init: parse(sun): init gathered global options: (null)
2009-04-08T13:08:40.772998+02:00 lfs20080510 automount[5948]: st_ready: st_ready(): state = 4 path /mnt/sd
2009-04-08T13:08:40.773021+02:00 lfs20080510 automount[5948]: lookup_nss_read_map: reading map file /var/run/autofs/session/auto.network.map.sbon
2009-04-08T13:08:40.773044+02:00 lfs20080510 automount[5948]: parse_init: parse(sun): init gathered global options: (null)
2009-04-08T13:08:40.773067+02:00 lfs20080510 automount[5948]: st_ready: st_ready(): state = 4 path /home/sbon/Connections/Network
2009-04-08T13:08:40.773103+02:00 lfs20080510 automount[5948]: st_prepare_shutdown: state 1 path /home/sbon/Connections/Devices
2009-04-08T13:08:40.773141+02:00 lfs20080510 automount[5948]: expire_proc: exp_proc = 3051350928 path /home/sbon/Connections/Devices
2009-04-08T13:08:40.773323+02:00 lfs20080510 automount[5948]: expire_cleanup: got thid 3051350928 path /home/sbon/Connections/Devices stat 0
2009-04-08T13:08:40.773360+02:00 lfs20080510 automount[5948]: expire_cleanup: sigchld: exp 3051350928 finished, switching from 5 to 7
2009-04-08T13:08:40.773394+02:00 lfs20080510 automount[5948]: st_shutdown: state 5 path /home/sbon/Connections/Devices
2009-04-08T13:08:40.973483+02:00 lfs20080510 automount[5948]: umount_multi: path /home/sbon/Connections/Devices incl 0
2009-04-08T13:08:40.973568+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Devices/USB_DISK_Pro
2009-04-08T13:08:40.973847+02:00 lfs20080510 automount[5948]: umounted indirect mount /home/sbon/Connections/Devices
2009-04-08T13:08:40.973864+02:00 lfs20080510 automount[5948]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-home-sbon-Connections-Devices
2009-04-08T13:08:40.973916+02:00 lfs20080510 automount[5948]: shut down path /home/sbon/Connections/Devices
2009-04-08T13:08:40.973978+02:00 lfs20080510 automount[5948]: do_notify_state: signal 15
2009-04-08T13:08:40.973989+02:00 lfs20080510 automount[5948]: master_notify_state_change: sig 15 switching /mnt/sd from 1 to 5
2009-04-08T13:08:40.973997+02:00 lfs20080510 automount[5948]: master_notify_state_change: sig 15 switching /home/sbon/Connections/Network from 1 to 5
2009-04-08T13:08:40.974012+02:00 lfs20080510 automount[5948]: st_prepare_shutdown: state 1 path /home/sbon/Connections/Network
2009-04-08T13:08:40.974031+02:00 lfs20080510 automount[5948]: expire_proc: exp_proc = 3051350928 path /home/sbon/Connections/Network
2009-04-08T13:08:40.974127+02:00 lfs20080510 automount[5948]: expire_proc_indirect: expire /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:40.974150+02:00 lfs20080510 automount[5948]: st_prepare_shutdown: state 1 path /mnt/sd
2009-04-08T13:08:40.974159+02:00 lfs20080510 automount[5948]: handle_packet: type = 6
2009-04-08T13:08:40.974169+02:00 lfs20080510 automount[5948]: handle_packet_expire_direct: token 273, name /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:40.974183+02:00 lfs20080510 automount[5948]: expire_proc: exp_proc = 3066383248 path /mnt/sd
2009-04-08T13:08:40.974967+02:00 lfs20080510 automount[5948]: expiring path /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:40.974974+02:00 lfs20080510 automount[5948]: umount_multi: path /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public incl 1
2009-04-08T13:08:40.974978+02:00 lfs20080510 automount[5948]: unmounting dir = /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:40.975015+02:00 lfs20080510 automount[5948]: expire_cleanup: got thid 3066383248 path /mnt/sd stat 0
2009-04-08T13:08:40.975023+02:00 lfs20080510 automount[5948]: expire_cleanup: sigchld: exp 3066383248 finished, switching from 5 to 7
2009-04-08T13:08:40.975027+02:00 lfs20080510 automount[5948]: st_shutdown: state 5 path /mnt/sd
2009-04-08T13:08:40.976955+02:00 lfs20080510 automount[5948]: expired /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:40.976973+02:00 lfs20080510 automount[5948]: dev_ioctl_send_ready: token = 273
2009-04-08T13:08:41.077208+02:00 lfs20080510 automount[5948]: handle_packet: type = 4
2009-04-08T13:08:41.077228+02:00 lfs20080510 automount[5948]: handle_packet_expire_indirect: token 274, name Windows Network
2009-04-08T13:08:41.077263+02:00 lfs20080510 automount[5948]: expiring path /home/sbon/Connections/Network/Windows Network
2009-04-08T13:08:41.077277+02:00 lfs20080510 automount[5948]: umount_multi: path /home/sbon/Connections/Network/Windows Network incl 1
2009-04-08T13:08:41.077312+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/bononline
2009-04-08T13:08:41.077547+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/bononline
2009-04-08T13:08:41.077569+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:41.077693+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:41.077713+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/sbon
2009-04-08T13:08:41.077829+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/sbon
2009-04-08T13:08:41.077849+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/test
2009-04-08T13:08:41.077962+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/test
2009-04-08T13:08:41.077982+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/video
2009-04-08T13:08:41.078091+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/video
2009-04-08T13:08:41.078110+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/bononline
2009-04-08T13:08:41.078215+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/bononline
2009-04-08T13:08:41.078234+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/cwdocumenten
2009-04-08T13:08:41.078336+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/cwdocumenten
2009-04-08T13:08:41.078355+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/ftp
2009-04-08T13:08:41.078454+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/ftp
2009-04-08T13:08:41.078473+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/mvanklink
2009-04-08T13:08:41.078568+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/mvanklink
2009-04-08T13:08:41.078587+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/public
2009-04-08T13:08:41.078681+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/public
2009-04-08T13:08:41.078700+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/sbon
2009-04-08T13:08:41.078789+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/sbon
2009-04-08T13:08:41.078809+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/bononline
2009-04-08T13:08:41.078826+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
2009-04-08T13:08:41.078841+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/sbon
2009-04-08T13:08:41.078856+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/test
2009-04-08T13:08:41.078870+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/video
2009-04-08T13:08:41.078885+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/bononline
2009-04-08T13:08:41.078900+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/cwdocumenten
2009-04-08T13:08:41.078914+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/ftp
2009-04-08T13:08:41.078929+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/mvanklink
2009-04-08T13:08:41.078943+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/public
2009-04-08T13:08:41.078958+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/sbon
2009-04-08T13:08:41.078998+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER
2009-04-08T13:08:41.079025+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812
2009-04-08T13:08:41.079045+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/Windows Network/BONONLINE
2009-04-08T13:08:41.079063+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/Windows Network
2009-04-08T13:08:41.079078+02:00 lfs20080510 automount[5948]: expired /home/sbon/Connections/Network/Windows Network
2009-04-08T13:08:41.079091+02:00 lfs20080510 automount[5948]: dev_ioctl_send_ready: token = 274
2009-04-08T13:08:41.079117+02:00 lfs20080510 automount[5948]: handle_packet: type = 3
2009-04-08T13:08:41.175131+02:00 lfs20080510 automount[5948]: umount_multi: path /mnt/sd incl 0
2009-04-08T13:08:41.175324+02:00 lfs20080510 automount[5948]: umounted indirect mount /mnt/sd
2009-04-08T13:08:41.175342+02:00 lfs20080510 automount[5948]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-mnt-sd
2009-04-08T13:08:41.175376+02:00 lfs20080510 automount[5948]: handle_packet_missing_indirect: token 275, name Windows Network, request pid 4115
2009-04-08T13:08:41.175401+02:00 lfs20080510 automount[5948]: shut down path /mnt/sd
2009-04-08T13:08:41.175431+02:00 lfs20080510 automount[5948]: dev_ioctl_send_fail: token = 275
2009-04-08T13:08:41.175494+02:00 lfs20080510 automount[5948]: handle_packet: type = 3
2009-04-08T13:08:41.175539+02:00 lfs20080510 automount[5948]: handle_packet_missing_indirect: token 276, name Windows Network, request pid 4115
2009-04-08T13:08:41.175564+02:00 lfs20080510 automount[5948]: do_notify_state: signal 15
2009-04-08T13:08:41.175574+02:00 lfs20080510 automount[5948]: dev_ioctl_send_fail: token = 276
2009-04-08T13:08:41.179184+02:00 lfs20080510 automount[5948]: expire_cleanup: got thid 3051350928 path /home/sbon/Connections/Network stat 0
2009-04-08T13:08:41.179211+02:00 lfs20080510 automount[5948]: expire_cleanup: sigchld: exp 3051350928 finished, switching from 5 to 7
2009-04-08T13:08:41.179236+02:00 lfs20080510 automount[5948]: st_shutdown: state 5 path /home/sbon/Connections/Network
2009-04-08T13:08:41.379363+02:00 lfs20080510 automount[5948]: umount_multi: path /home/sbon/Connections/Network incl 0
2009-04-08T13:08:41.379435+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/SSH access
2009-04-08T13:08:41.379465+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/FTP
2009-04-08T13:08:41.379645+02:00 lfs20080510 automount[5948]: umounted indirect mount /home/sbon/Connections/Network
2009-04-08T13:08:41.379662+02:00 lfs20080510 automount[5948]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-home-sbon-Connections-Network
2009-04-08T13:08:41.379690+02:00 lfs20080510 automount[5948]: shut down path /home/sbon/Connections/Network
2009-04-08T13:08:41.379791+02:00 lfs20080510 automount[5948]: autofs stopped
[-- Attachment #3: Type: text/plain, Size: 140 bytes --]
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Automounter stops after reload signal.
2009-04-08 16:14 Stef Bon
@ 2009-04-12 14:08 ` Ian Kent
2009-04-12 17:59 ` Stef Bon
0 siblings, 1 reply; 13+ messages in thread
From: Ian Kent @ 2009-04-12 14:08 UTC (permalink / raw)
To: Stef Bon; +Cc: autofs
On Wed, 2009-04-08 at 18:14 +0200, Stef Bon wrote:
> Hello,
>
> I've been working on a construction which adds an autofs managed
> mountpoint to the homedirectory, when:
> a. an usb device or more than one is detected when logging in
> b. an usb device is plugged in during a session
What version of autofs did you say you are using?
>
> This looks like:
>
> /home/sbon/Connections
>
> is the base directory for all kinds of connections (network, all kind of
> hardware)
> Earlier I've been working on a construction to create a browseable
> network map here, also with autofs.
> Network resources like SMB shares, FTP servers and SSH access is
> possible. (SMB via cifs, FTP via curlftpfs/FUSE, SSH via sshfs/FUSE).
> Access to Novell networks should also be possible.
>
> Now about devices. When I add a device during my session, the (virtual)
> directory Devices is added, and therein my USB stick:
>
> /home/sbon/Connections/Devices/USB_DISK_Pro
>
> Other devices should also appear in this directory.
> I do not have published this yet anywhere, but it is simular to the one
> you can find here:
>
> http://www.gentoo-wiki.info/Autofs#UDEV_with_autofs
>
> The big difference with my construction is that the mountpoint is *in*
> the users homedirectory, not in /media: direct accessible for users from
> their homedirectory, where going to a "foreign" place like /media is not
> that userfriendly.
>
> Now I've got the following situation:
>
> my mastermap looks like:
>
> /mnt/sd /etc/autofs/auto.sd --timeout=50
>
> +/var/run/autofs/auto.master
>
>
> and /var/run/autofs/auto.master:
>
> /home/sbon/Connections/Network
> /var/run/autofs/session/auto.network.map.sbon --ghost
> /home/sbon/Connections/Devices /var/run/autofs/session/auto.usb.map.sbon
> --ghost
>
> the automaps are dynamically created maps:
> /var/run/autofs/session/auto.usb.map.sbon:
>
> USB_DISK_Pro -fstype=auto :/dev/disk/by-uuid/6891-3786
>
> and /var/run/autofs/session/auto.network.map.sbon:
>
> "FTP" -fstype=ftpfs \
> /192.168.0.1 ://192.168.0.1 \
> /ftp-stud.fht-esslingen.de ://ftp-stud.fht-esslingen.de
> "Windows Network"
> -fstype=cifs,credentials="/var/run/safe/sbon/latest/mount.smb.cred" \
> "/BONONLINE/ROUTER/sbon" -rw,ip=192.168.0.1 "://ROUTER/sbon" \
> "/BONONLINE/ROUTER/bononline" -rw,ip=192.168.0.1
> "://ROUTER/bononline" \
> "/BONONLINE/ROUTER/mvanklink" -rw,ip=192.168.0.1
> "://ROUTER/mvanklink" \
> "/BONONLINE/ROUTER/ftp" -rw,ip=192.168.0.1 "://ROUTER/ftp" \
> "/BONONLINE/ROUTER/public" -rw,ip=192.168.0.1 "://ROUTER/public" \
> "/BONONLINE/ROUTER/cwdocumenten" -rw,ip=192.168.0.1
> "://ROUTER/cwdocumenten" \
> "/BONONLINE/LFS20060812/sbon" -rw,ip=192.168.0.2
> "://LFS20060812/sbon" \
> "/BONONLINE/LFS20060812/bononline" -rw,ip=192.168.0.2
> "://LFS20060812/bononline" \
> "/BONONLINE/LFS20060812/video" -rw,ip=192.168.0.2
> "://LFS20060812/video" \
> "/BONONLINE/LFS20060812/test" -rw,ip=192.168.0.2
> "://LFS20060812/test" \
> "/BONONLINE/LFS20060812/public" -rw,ip=192.168.0.2
> "://LFS20060812/public"
> "SSH access" -fstype=sshfs \
> "/192.168.0.1" "://sbon@192.168.0.1:/" \
> "/192.168.0.2" "://sbon@192.168.0.2:/"
>
> These maps are created dynamically, by udev (when plugging in a device)
> and at login (coldpluggin and the networkmap)
> There is a script which is run by udev when a device is removed.
>
> After removal of the usbstick, my maps look like:
>
> /var/run/autofs/auto.master
>
> /home/sbon/Connections/Network
> /var/run/autofs/session/auto.network.map.sbon --ghost
>
> The networkmap is unchanged.
>
> After a reload the automounter has stopped. Attached is the relevant
> output of the logfile.
>
> This behaviour I get also in siumlar situations. For example, logging in
> as sbon, adding a device, then logging in as root in a terminal(konsole
> and then su), everything is still ok (the maps above are changed:
> mountpoints and maps are added. But when logging out as root, and the
> maps are changed again, the automounter stops also.
>
> It looks like the automounter cannot handle the removal of mountpoints
> correctly. It will stop.
>
>
> Stef Bon
>
>
>
>
>
> plain text document attachment (automount.stop.log)
> 2009-04-08T13:08:40.686693+02:00 lfs20080510 kernel:<6>usb 6-1.3: USB disconnect, address 4
> 2009-04-08T13:08:40.714507+02:00 lfs20080510 : The configuration file /etc/autofs.usersession.conf found.
> 2009-04-08T13:08:40.716559+02:00 lfs20080510 : Parameter DEVICES_NAME not set. Using default.
> 2009-04-08T13:08:40.770432+02:00 lfs20080510 automount[5948]: re-reading master map /etc/autofs/auto.master
> 2009-04-08T13:08:40.770586+02:00 lfs20080510 automount[5948]: lookup_nss_read_master: reading master file /etc/autofs/auto.master
> 2009-04-08T13:08:40.770645+02:00 lfs20080510 automount[5948]: parse_init: parse(sun): init gathered global options: (null)
> 2009-04-08T13:08:40.770723+02:00 lfs20080510 automount[5948]: lookup_read_master: lookup(file): read entry /mnt/sd
> 2009-04-08T13:08:40.770791+02:00 lfs20080510 automount[5948]: lookup_read_master: lookup(file): read entry +/var/run/autofs/auto.master
> 2009-04-08T13:08:40.770826+02:00 lfs20080510 automount[5948]: lookup_nss_read_master: reading master file /var/run/autofs/auto.master
> 2009-04-08T13:08:40.770868+02:00 lfs20080510 automount[5948]: parse_init: parse(sun): init gathered global options: (null)
> 2009-04-08T13:08:40.770915+02:00 lfs20080510 automount[5948]: lookup_read_master: lookup(file): read entry /home/sbon/Connections/Network
> 2009-04-08T13:08:40.772530+02:00 lfs20080510 automount[5948]: st_readmap: state 1 path /mnt/sd
> 2009-04-08T13:08:40.772572+02:00 lfs20080510 automount[5948]: re-reading map for /mnt/sd
> 2009-04-08T13:08:40.772612+02:00 lfs20080510 automount[5948]: st_readmap: state 1 path /home/sbon/Connections/Network
> 2009-04-08T13:08:40.772655+02:00 lfs20080510 automount[5948]: re-reading map for /home/sbon/Connections/Network
> 2009-04-08T13:08:40.772948+02:00 lfs20080510 automount[5948]: lookup_nss_read_map: reading map file /etc/autofs/auto.sd
> 2009-04-08T13:08:40.772975+02:00 lfs20080510 automount[5948]: parse_init: parse(sun): init gathered global options: (null)
> 2009-04-08T13:08:40.772998+02:00 lfs20080510 automount[5948]: st_ready: st_ready(): state = 4 path /mnt/sd
> 2009-04-08T13:08:40.773021+02:00 lfs20080510 automount[5948]: lookup_nss_read_map: reading map file /var/run/autofs/session/auto.network.map.sbon
> 2009-04-08T13:08:40.773044+02:00 lfs20080510 automount[5948]: parse_init: parse(sun): init gathered global options: (null)
> 2009-04-08T13:08:40.773067+02:00 lfs20080510 automount[5948]: st_ready: st_ready(): state = 4 path /home/sbon/Connections/Network
> 2009-04-08T13:08:40.773103+02:00 lfs20080510 automount[5948]: st_prepare_shutdown: state 1 path /home/sbon/Connections/Devices
> 2009-04-08T13:08:40.773141+02:00 lfs20080510 automount[5948]: expire_proc: exp_proc = 3051350928 path /home/sbon/Connections/Devices
> 2009-04-08T13:08:40.773323+02:00 lfs20080510 automount[5948]: expire_cleanup: got thid 3051350928 path /home/sbon/Connections/Devices stat 0
> 2009-04-08T13:08:40.773360+02:00 lfs20080510 automount[5948]: expire_cleanup: sigchld: exp 3051350928 finished, switching from 5 to 7
> 2009-04-08T13:08:40.773394+02:00 lfs20080510 automount[5948]: st_shutdown: state 5 path /home/sbon/Connections/Devices
> 2009-04-08T13:08:40.973483+02:00 lfs20080510 automount[5948]: umount_multi: path /home/sbon/Connections/Devices incl 0
> 2009-04-08T13:08:40.973568+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Devices/USB_DISK_Pro
> 2009-04-08T13:08:40.973847+02:00 lfs20080510 automount[5948]: umounted indirect mount /home/sbon/Connections/Devices
> 2009-04-08T13:08:40.973864+02:00 lfs20080510 automount[5948]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-home-sbon-Connections-Devices
> 2009-04-08T13:08:40.973916+02:00 lfs20080510 automount[5948]: shut down path /home/sbon/Connections/Devices
> 2009-04-08T13:08:40.973978+02:00 lfs20080510 automount[5948]: do_notify_state: signal 15
> 2009-04-08T13:08:40.973989+02:00 lfs20080510 automount[5948]: master_notify_state_change: sig 15 switching /mnt/sd from 1 to 5
> 2009-04-08T13:08:40.973997+02:00 lfs20080510 automount[5948]: master_notify_state_change: sig 15 switching /home/sbon/Connections/Network from 1 to 5
> 2009-04-08T13:08:40.974012+02:00 lfs20080510 automount[5948]: st_prepare_shutdown: state 1 path /home/sbon/Connections/Network
> 2009-04-08T13:08:40.974031+02:00 lfs20080510 automount[5948]: expire_proc: exp_proc = 3051350928 path /home/sbon/Connections/Network
> 2009-04-08T13:08:40.974127+02:00 lfs20080510 automount[5948]: expire_proc_indirect: expire /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
> 2009-04-08T13:08:40.974150+02:00 lfs20080510 automount[5948]: st_prepare_shutdown: state 1 path /mnt/sd
> 2009-04-08T13:08:40.974159+02:00 lfs20080510 automount[5948]: handle_packet: type = 6
> 2009-04-08T13:08:40.974169+02:00 lfs20080510 automount[5948]: handle_packet_expire_direct: token 273, name /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
> 2009-04-08T13:08:40.974183+02:00 lfs20080510 automount[5948]: expire_proc: exp_proc = 3066383248 path /mnt/sd
> 2009-04-08T13:08:40.974967+02:00 lfs20080510 automount[5948]: expiring path /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
> 2009-04-08T13:08:40.974974+02:00 lfs20080510 automount[5948]: umount_multi: path /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public incl 1
> 2009-04-08T13:08:40.974978+02:00 lfs20080510 automount[5948]: unmounting dir = /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
> 2009-04-08T13:08:40.975015+02:00 lfs20080510 automount[5948]: expire_cleanup: got thid 3066383248 path /mnt/sd stat 0
> 2009-04-08T13:08:40.975023+02:00 lfs20080510 automount[5948]: expire_cleanup: sigchld: exp 3066383248 finished, switching from 5 to 7
> 2009-04-08T13:08:40.975027+02:00 lfs20080510 automount[5948]: st_shutdown: state 5 path /mnt/sd
> 2009-04-08T13:08:40.976955+02:00 lfs20080510 automount[5948]: expired /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
> 2009-04-08T13:08:40.976973+02:00 lfs20080510 automount[5948]: dev_ioctl_send_ready: token = 273
> 2009-04-08T13:08:41.077208+02:00 lfs20080510 automount[5948]: handle_packet: type = 4
> 2009-04-08T13:08:41.077228+02:00 lfs20080510 automount[5948]: handle_packet_expire_indirect: token 274, name Windows Network
> 2009-04-08T13:08:41.077263+02:00 lfs20080510 automount[5948]: expiring path /home/sbon/Connections/Network/Windows Network
> 2009-04-08T13:08:41.077277+02:00 lfs20080510 automount[5948]: umount_multi: path /home/sbon/Connections/Network/Windows Network incl 1
> 2009-04-08T13:08:41.077312+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/bononline
> 2009-04-08T13:08:41.077547+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/bononline
> 2009-04-08T13:08:41.077569+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
> 2009-04-08T13:08:41.077693+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
> 2009-04-08T13:08:41.077713+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/sbon
> 2009-04-08T13:08:41.077829+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/sbon
> 2009-04-08T13:08:41.077849+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/test
> 2009-04-08T13:08:41.077962+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/test
> 2009-04-08T13:08:41.077982+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/video
> 2009-04-08T13:08:41.078091+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/video
> 2009-04-08T13:08:41.078110+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/bononline
> 2009-04-08T13:08:41.078215+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/bononline
> 2009-04-08T13:08:41.078234+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/cwdocumenten
> 2009-04-08T13:08:41.078336+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/cwdocumenten
> 2009-04-08T13:08:41.078355+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/ftp
> 2009-04-08T13:08:41.078454+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/ftp
> 2009-04-08T13:08:41.078473+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/mvanklink
> 2009-04-08T13:08:41.078568+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/mvanklink
> 2009-04-08T13:08:41.078587+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/public
> 2009-04-08T13:08:41.078681+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/public
> 2009-04-08T13:08:41.078700+02:00 lfs20080510 automount[5948]: umount_multi_triggers: umount offset /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/sbon
> 2009-04-08T13:08:41.078789+02:00 lfs20080510 automount[5948]: umounted offset mount /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/sbon
> 2009-04-08T13:08:41.078809+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/bononline
> 2009-04-08T13:08:41.078826+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/public
> 2009-04-08T13:08:41.078841+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/sbon
> 2009-04-08T13:08:41.078856+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/test
> 2009-04-08T13:08:41.078870+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812/video
> 2009-04-08T13:08:41.078885+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/bononline
> 2009-04-08T13:08:41.078900+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/cwdocumenten
> 2009-04-08T13:08:41.078914+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/ftp
> 2009-04-08T13:08:41.078929+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/mvanklink
> 2009-04-08T13:08:41.078943+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/public
> 2009-04-08T13:08:41.078958+02:00 lfs20080510 automount[5948]: cache_delete_offset_list: deleting offset key /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER/sbon
> 2009-04-08T13:08:41.078998+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/Windows Network/BONONLINE/ROUTER
> 2009-04-08T13:08:41.079025+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/Windows Network/BONONLINE/LFS20060812
> 2009-04-08T13:08:41.079045+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/Windows Network/BONONLINE
> 2009-04-08T13:08:41.079063+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/Windows Network
> 2009-04-08T13:08:41.079078+02:00 lfs20080510 automount[5948]: expired /home/sbon/Connections/Network/Windows Network
> 2009-04-08T13:08:41.079091+02:00 lfs20080510 automount[5948]: dev_ioctl_send_ready: token = 274
> 2009-04-08T13:08:41.079117+02:00 lfs20080510 automount[5948]: handle_packet: type = 3
> 2009-04-08T13:08:41.175131+02:00 lfs20080510 automount[5948]: umount_multi: path /mnt/sd incl 0
> 2009-04-08T13:08:41.175324+02:00 lfs20080510 automount[5948]: umounted indirect mount /mnt/sd
> 2009-04-08T13:08:41.175342+02:00 lfs20080510 automount[5948]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-mnt-sd
> 2009-04-08T13:08:41.175376+02:00 lfs20080510 automount[5948]: handle_packet_missing_indirect: token 275, name Windows Network, request pid 4115
> 2009-04-08T13:08:41.175401+02:00 lfs20080510 automount[5948]: shut down path /mnt/sd
> 2009-04-08T13:08:41.175431+02:00 lfs20080510 automount[5948]: dev_ioctl_send_fail: token = 275
> 2009-04-08T13:08:41.175494+02:00 lfs20080510 automount[5948]: handle_packet: type = 3
> 2009-04-08T13:08:41.175539+02:00 lfs20080510 automount[5948]: handle_packet_missing_indirect: token 276, name Windows Network, request pid 4115
> 2009-04-08T13:08:41.175564+02:00 lfs20080510 automount[5948]: do_notify_state: signal 15
> 2009-04-08T13:08:41.175574+02:00 lfs20080510 automount[5948]: dev_ioctl_send_fail: token = 276
> 2009-04-08T13:08:41.179184+02:00 lfs20080510 automount[5948]: expire_cleanup: got thid 3051350928 path /home/sbon/Connections/Network stat 0
> 2009-04-08T13:08:41.179211+02:00 lfs20080510 automount[5948]: expire_cleanup: sigchld: exp 3051350928 finished, switching from 5 to 7
> 2009-04-08T13:08:41.179236+02:00 lfs20080510 automount[5948]: st_shutdown: state 5 path /home/sbon/Connections/Network
> 2009-04-08T13:08:41.379363+02:00 lfs20080510 automount[5948]: umount_multi: path /home/sbon/Connections/Network incl 0
> 2009-04-08T13:08:41.379435+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/SSH access
> 2009-04-08T13:08:41.379465+02:00 lfs20080510 automount[5948]: rm_unwanted_fn: removing directory /home/sbon/Connections/Network/FTP
> 2009-04-08T13:08:41.379645+02:00 lfs20080510 automount[5948]: umounted indirect mount /home/sbon/Connections/Network
> 2009-04-08T13:08:41.379662+02:00 lfs20080510 automount[5948]: automount_path_to_fifo: fifo name /var/run/autofs.fifo-home-sbon-Connections-Network
> 2009-04-08T13:08:41.379690+02:00 lfs20080510 automount[5948]: shut down path /home/sbon/Connections/Network
> 2009-04-08T13:08:41.379791+02:00 lfs20080510 automount[5948]: autofs stopped
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Automounter stops after reload signal.
2009-04-12 14:08 ` Ian Kent
@ 2009-04-12 17:59 ` Stef Bon
2009-04-13 5:49 ` Ian Kent
0 siblings, 1 reply; 13+ messages in thread
From: Stef Bon @ 2009-04-12 17:59 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
Ian Kent wrote:
> On Wed, 2009-04-08 at 18:14 +0200, Stef Bon wrote:
>
>> Hello,
>>
>> I've been working on a construction which adds an autofs managed
>> mountpoint to the homedirectory, when:
>> a. an usb device or more than one is detected when logging in
>> b. an usb device is plugged in during a session
>>
>
> What version of autofs did you say you are using?
>
Well, 5.0.4.
I can imagine that my story is complicated, so I've found a simple way
to get the same behaviour.
Add the following line to the auto.master file in /etc/autofs:
/mnt/smb /etc/autofs/auto.smb
Start the daemon, or, if already running, do a reload.
Play with the new mountpoint, so do something like :
ls /mnt/smb/<valid name of smb host>
look at the result, a tree should be the result.
Now remove the line again, (thus: "/mnt/smb /etc/a...."), and give the
daemon a reload again,
and the daemon stops.
I've got a 2.6.27.9 kernel, patched with
autofs4-2.6.27-dev-ioctl-20081029.patch and
autofs4-2.6.27-v5-update-20081027.patch
Stef Bon
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Automounter stops after reload signal.
2009-04-12 17:59 ` Stef Bon
@ 2009-04-13 5:49 ` Ian Kent
2009-04-13 8:34 ` Stef Bon
0 siblings, 1 reply; 13+ messages in thread
From: Ian Kent @ 2009-04-13 5:49 UTC (permalink / raw)
To: Stef Bon; +Cc: autofs
Stef Bon wrote:
> Ian Kent wrote:
>> On Wed, 2009-04-08 at 18:14 +0200, Stef Bon wrote:
>>
>>> Hello,
>>>
>>> I've been working on a construction which adds an autofs managed
>>> mountpoint to the homedirectory, when:
>>> a. an usb device or more than one is detected when logging in
>>> b. an usb device is plugged in during a session
>>>
>>
>> What version of autofs did you say you are using?
>>
>
> Well, 5.0.4.
OK, then the daemon should remain running as long as there is at least
one entry in the master map. If the daemon receives a HUP signal then
any mount handling threads that terminate will send SIGTERM to the
signal catching thread. If the master map becomes empty during this
SIGTERM check autofs will exit. That is what the daemon exit condition
is and we do need such a condition to be able to exit at all.
If something else is happening in your case then we need to work out
what's going on.
However, there are a couple of patches against 5.0.4 in this area of the
code, but I'm not sure they make the above behaviour different. We could
give then a try.
>
> I can imagine that my story is complicated, so I've found a simple way
> to get the same behaviour.
>
> Add the following line to the auto.master file in /etc/autofs:
>
> /mnt/smb /etc/autofs/auto.smb
>
> Start the daemon, or, if already running, do a reload.
>
> Play with the new mountpoint, so do something like :
>
> ls /mnt/smb/<valid name of smb host>
>
> look at the result, a tree should be the result.
>
> Now remove the line again, (thus: "/mnt/smb /etc/a...."), and give the
> daemon a reload again,
>
> and the daemon stops.
As it should if there are no master map entries remaining.
I've been here before and I think trying to change the exit condition
will be quite hard.
>
> I've got a 2.6.27.9 kernel, patched with
>
> autofs4-2.6.27-dev-ioctl-20081029.patch and
> autofs4-2.6.27-v5-update-20081027.patch
>
> Stef Bon
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Automounter stops after reload signal.
2009-04-13 5:49 ` Ian Kent
@ 2009-04-13 8:34 ` Stef Bon
2009-04-13 9:01 ` Ian Kent
0 siblings, 1 reply; 13+ messages in thread
From: Stef Bon @ 2009-04-13 8:34 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
Ian Kent wrote:
> Stef Bon wrote:
>
>> Ian Kent wrote:
>>
>>> On Wed, 2009-04-08 at 18:14 +0200, Stef Bon wrote:
>>>
>>>
>>>> Hello,
>>>>
>>>> I've been working on a construction which adds an autofs managed
>>>> mountpoint to the homedirectory, when:
>>>> a. an usb device or more than one is detected when logging in
>>>> b. an usb device is plugged in during a session
>>>>
>>>>
>>> What version of autofs did you say you are using?
>>>
>>>
>> Well, 5.0.4.
>>
>
> OK, then the daemon should remain running as long as there is at least
> one entry in the master map. If the daemon receives a HUP signal then
> any mount handling threads that terminate will send SIGTERM to the
> signal catching thread. If the master map becomes empty during this
> SIGTERM check autofs will exit. That is what the daemon exit condition
> is and we do need such a condition to be able to exit at all.
>
> If something else is happening in your case then we need to work out
> what's going on.
>
Yes, the auto.master file is not empty. In all of my cases, and in the
example below, the auto.master file has one line which is there always:
/mnt/sd /etc/autofs/auto.sd --timeout=50
I remember that I have added this line to prevent this unwanted
behaviour. In my construction it can happen that when no users are
logged in (after logout), there are no mountpoints, and then the
automounter did stop also. So then I added this line, and the behaviour
disappeared. Now it's back again. Removing a mountpoint, and reloading
gives this behaviour, even if there are other mountpoints and maps in
the auto.master file.
Ok, so this should be a bug, if you say that, when the auto.master file
is empty, the automounter should stop after a HUP signal.
Apart from this bug, I do not understand this. You say it's necessary to
exit at all, but is this a technical reason? The master daemon should
not stop after a reload signal, even if the master file is empty.
Stef Bon
> However, there are a couple of patches against 5.0.4 in this area of the
> code, but I'm not sure they make the above behaviour different. We could
> give then a try.
>
>
>> I can imagine that my story is complicated, so I've found a simple way
>> to get the same behaviour.
>>
>> Add the following line to the auto.master file in /etc/autofs:
>>
>> /mnt/smb /etc/autofs/auto.smb
>>
>> Start the daemon, or, if already running, do a reload.
>>
>> Play with the new mountpoint, so do something like :
>>
>> ls /mnt/smb/<valid name of smb host>
>>
>> look at the result, a tree should be the result.
>>
>> Now remove the line again, (thus: "/mnt/smb /etc/a...."), and give the
>> daemon a reload again,
>>
>> and the daemon stops.
>>
>
> As it should if there are no master map entries remaining.
> I've been here before and I think trying to change the exit condition
> will be quite hard.
>
>
>> I've got a 2.6.27.9 kernel, patched with
>>
>> autofs4-2.6.27-dev-ioctl-20081029.patch and
>> autofs4-2.6.27-v5-update-20081027.patch
>>
>> Stef Bon
>>
>>
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Automounter stops after reload signal.
2009-04-13 8:34 ` Stef Bon
@ 2009-04-13 9:01 ` Ian Kent
2009-04-24 4:31 ` Ian Kent
0 siblings, 1 reply; 13+ messages in thread
From: Ian Kent @ 2009-04-13 9:01 UTC (permalink / raw)
To: Stef Bon; +Cc: autofs
Stef Bon wrote:
> Ian Kent wrote:
>> Stef Bon wrote:
>>
>>> Ian Kent wrote:
>>>
>>>> On Wed, 2009-04-08 at 18:14 +0200, Stef Bon wrote:
>>>>
>>>>
>>>>> Hello,
>>>>>
>>>>> I've been working on a construction which adds an autofs managed
>>>>> mountpoint to the homedirectory, when:
>>>>> a. an usb device or more than one is detected when logging in
>>>>> b. an usb device is plugged in during a session
>>>>>
>>>> What version of autofs did you say you are using?
>>>>
>>> Well, 5.0.4.
>>>
>>
>> OK, then the daemon should remain running as long as there is at least
>> one entry in the master map. If the daemon receives a HUP signal then
>> any mount handling threads that terminate will send SIGTERM to the
>> signal catching thread. If the master map becomes empty during this
>> SIGTERM check autofs will exit. That is what the daemon exit condition
>> is and we do need such a condition to be able to exit at all.
>>
>> If something else is happening in your case then we need to work out
>> what's going on.
>>
>
> Yes, the auto.master file is not empty. In all of my cases, and in the
> example below, the auto.master file has one line which is there always:
>
> /mnt/sd /etc/autofs/auto.sd --timeout=50
>
>
> I remember that I have added this line to prevent this unwanted
> behaviour. In my construction it can happen that when no users are
> logged in (after logout), there are no mountpoints, and then the
> automounter did stop also. So then I added this line, and the behaviour
> disappeared. Now it's back again. Removing a mountpoint, and reloading
> gives this behaviour, even if there are other mountpoints and maps in
> the auto.master file.
>
> Ok, so this should be a bug, if you say that, when the auto.master file
> is empty, the automounter should stop after a HUP signal.
> Apart from this bug, I do not understand this. You say it's necessary to
> exit at all, but is this a technical reason? The master daemon should
> not stop after a reload signal, even if the master file is empty.
OK, looks like a bug.
I'll look further, using your example.
What I'm saying is that, in order to exit there must be such a condition
and that it isn't as straight forward as just saying the daemon
shouldn't exit after receiving a HUP signal even if the master map is
empty. The issue of continuing to run or not has come up a number of
times and it is tricky. At the very least an empty master map is likely
to continue to be the exit condition.
>
> Stef Bon
>> However, there are a couple of patches against 5.0.4 in this area of the
>> code, but I'm not sure they make the above behaviour different. We could
>> give then a try.
>>
>>
>>> I can imagine that my story is complicated, so I've found a simple way
>>> to get the same behaviour.
>>>
>>> Add the following line to the auto.master file in /etc/autofs:
>>>
>>> /mnt/smb /etc/autofs/auto.smb
>>>
>>> Start the daemon, or, if already running, do a reload.
>>>
>>> Play with the new mountpoint, so do something like :
>>>
>>> ls /mnt/smb/<valid name of smb host>
>>>
>>> look at the result, a tree should be the result.
>>>
>>> Now remove the line again, (thus: "/mnt/smb /etc/a...."), and give the
>>> daemon a reload again,
>>>
>>> and the daemon stops.
>>>
>>
>> As it should if there are no master map entries remaining.
>> I've been here before and I think trying to change the exit condition
>> will be quite hard.
>>
>>
>>> I've got a 2.6.27.9 kernel, patched with
>>>
>>> autofs4-2.6.27-dev-ioctl-20081029.patch and
>>> autofs4-2.6.27-v5-update-20081027.patch
>>>
>>> Stef Bon
>>>
>>>
>>
>>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Automounter stops after reload signal.
2009-04-13 9:01 ` Ian Kent
@ 2009-04-24 4:31 ` Ian Kent
2009-04-24 4:54 ` Ian Kent
0 siblings, 1 reply; 13+ messages in thread
From: Ian Kent @ 2009-04-24 4:31 UTC (permalink / raw)
To: Stef Bon; +Cc: autofs
On Mon, Apr 13, 2009 at 05:01:42PM +0800, Ian Kent wrote:
> Stef Bon wrote:
> > Ian Kent wrote:
> >> Stef Bon wrote:
> >>
> >>> Ian Kent wrote:
> >>>
> >>>> On Wed, 2009-04-08 at 18:14 +0200, Stef Bon wrote:
> >>>>
> >>>>
> >>>>> Hello,
> >>>>>
> >>>>> I've been working on a construction which adds an autofs managed
> >>>>> mountpoint to the homedirectory, when:
> >>>>> a. an usb device or more than one is detected when logging in
> >>>>> b. an usb device is plugged in during a session
> >>>>>
> >>>> What version of autofs did you say you are using?
> >>>>
> >>> Well, 5.0.4.
> >>>
> >>
> >> OK, then the daemon should remain running as long as there is at least
> >> one entry in the master map. If the daemon receives a HUP signal then
> >> any mount handling threads that terminate will send SIGTERM to the
> >> signal catching thread. If the master map becomes empty during this
> >> SIGTERM check autofs will exit. That is what the daemon exit condition
> >> is and we do need such a condition to be able to exit at all.
> >>
> >> If something else is happening in your case then we need to work out
> >> what's going on.
> >>
> >
> > Yes, the auto.master file is not empty. In all of my cases, and in the
> > example below, the auto.master file has one line which is there always:
> >
> > /mnt/sd /etc/autofs/auto.sd --timeout=50
> >
> >
> > I remember that I have added this line to prevent this unwanted
> > behaviour. In my construction it can happen that when no users are
> > logged in (after logout), there are no mountpoints, and then the
> > automounter did stop also. So then I added this line, and the behaviour
> > disappeared. Now it's back again. Removing a mountpoint, and reloading
> > gives this behaviour, even if there are other mountpoints and maps in
> > the auto.master file.
> >
> > Ok, so this should be a bug, if you say that, when the auto.master file
> > is empty, the automounter should stop after a HUP signal.
> > Apart from this bug, I do not understand this. You say it's necessary to
> > exit at all, but is this a technical reason? The master daemon should
> > not stop after a reload signal, even if the master file is empty.
>
> OK, looks like a bug.
> I'll look further, using your example.
>
Yep, I've introduced a regression.
Can you try this patch please.
Ian
autofs-5.0.4 - library reload fix update fix
From: Ian Kent <raven@themaw.net>
The library reload fixes introduced a bug which causes autofs to
incorrectly shutdown. Previously the signal handling thread only
recieved signals either when they were explicity sent or it was
time to shutdown so continuing on to call the signal handling
routine was the correct thing to do. Now we need to join with
the mount handling thread at exit but, in this case, we don't
want to continue on to the signal handling routine as that will
incorrectly cause the signal to be passed on to other mount
handling threads.
---
daemon/automount.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/daemon/automount.c b/daemon/automount.c
index 80691fa..d7e3e12 100644
--- a/daemon/automount.c
+++ b/daemon/automount.c
@@ -1332,8 +1332,17 @@ static void *statemachine(void *arg)
case SIGTERM:
case SIGINT:
case SIGUSR2:
- if (master_done(master_list))
- return NULL;
+ master_mutex_lock();
+ if (!list_empty(&master_list->completed)) {
+ if (master_done(master_list)) {
+ master_mutex_unlock();
+ return NULL;
+ }
+ master_mutex_unlock();
+ break;
+ }
+ master_mutex_unlock();
+
case SIGUSR1:
do_signals(master_list, sig);
break;
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: Automounter stops after reload signal.
2009-04-24 4:31 ` Ian Kent
@ 2009-04-24 4:54 ` Ian Kent
2009-04-24 8:19 ` Stef Bon
0 siblings, 1 reply; 13+ messages in thread
From: Ian Kent @ 2009-04-24 4:54 UTC (permalink / raw)
To: Stef Bon; +Cc: autofs
On Fri, Apr 24, 2009 at 12:31:43PM +0800, Ian Kent wrote:
> On Mon, Apr 13, 2009 at 05:01:42PM +0800, Ian Kent wrote:
> > Stef Bon wrote:
> > > Ian Kent wrote:
> > >> Stef Bon wrote:
> > >>
> > >>> Ian Kent wrote:
> > >>>
> > >>>> On Wed, 2009-04-08 at 18:14 +0200, Stef Bon wrote:
> > >>>>
> > >>>>
> > >>>>> Hello,
> > >>>>>
> > >>>>> I've been working on a construction which adds an autofs managed
> > >>>>> mountpoint to the homedirectory, when:
> > >>>>> a. an usb device or more than one is detected when logging in
> > >>>>> b. an usb device is plugged in during a session
> > >>>>>
> > >>>> What version of autofs did you say you are using?
> > >>>>
> > >>> Well, 5.0.4.
> > >>>
> > >>
> > >> OK, then the daemon should remain running as long as there is at least
> > >> one entry in the master map. If the daemon receives a HUP signal then
> > >> any mount handling threads that terminate will send SIGTERM to the
> > >> signal catching thread. If the master map becomes empty during this
> > >> SIGTERM check autofs will exit. That is what the daemon exit condition
> > >> is and we do need such a condition to be able to exit at all.
> > >>
> > >> If something else is happening in your case then we need to work out
> > >> what's going on.
> > >>
> > >
> > > Yes, the auto.master file is not empty. In all of my cases, and in the
> > > example below, the auto.master file has one line which is there always:
> > >
> > > /mnt/sd /etc/autofs/auto.sd --timeout=50
> > >
> > >
> > > I remember that I have added this line to prevent this unwanted
> > > behaviour. In my construction it can happen that when no users are
> > > logged in (after logout), there are no mountpoints, and then the
> > > automounter did stop also. So then I added this line, and the behaviour
> > > disappeared. Now it's back again. Removing a mountpoint, and reloading
> > > gives this behaviour, even if there are other mountpoints and maps in
> > > the auto.master file.
> > >
> > > Ok, so this should be a bug, if you say that, when the auto.master file
> > > is empty, the automounter should stop after a HUP signal.
> > > Apart from this bug, I do not understand this. You say it's necessary to
> > > exit at all, but is this a technical reason? The master daemon should
> > > not stop after a reload signal, even if the master file is empty.
> >
> > OK, looks like a bug.
> > I'll look further, using your example.
> >
>
> Yep, I've introduced a regression.
> Can you try this patch please.
Oops, that's not quite right.
Try this instead, of course the CHANGELOG hunk might not apply.
autofs-5.0.4 - library reload fix update fix
From: Ian Kent <raven@themaw.net>
The library reload fixes introduced a bug which causes autofs to
incorrectly shutdown. Previously the signal handling thread only
recieved signals either when they were explicity sent or it was
time to shutdown so continuing on to call the signal handling
routine was the correct thing to do. Now we need to join with
the mount handling thread at exit but, in this case, we don't
want to continue on to the signal handling routine as that will
incorrectly cause the signal to be passed on to other mount
handling threads.
---
CHANGELOG | 1 +
daemon/automount.c | 13 +++++++++++--
lib/master.c | 2 --
3 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index 7ca45fd..5e01812 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -44,6 +44,7 @@
- use intr option as hosts mount default.
- fix kernel includes.
- dont umount existing direct mount on master re-read.
+- fix incorrect shutdown introduced by library relaod fixes.
4/11/2008 autofs-5.0.4
-----------------------
diff --git a/daemon/automount.c b/daemon/automount.c
index 80691fa..d7e3e12 100644
--- a/daemon/automount.c
+++ b/daemon/automount.c
@@ -1332,8 +1332,17 @@ static void *statemachine(void *arg)
case SIGTERM:
case SIGINT:
case SIGUSR2:
- if (master_done(master_list))
- return NULL;
+ master_mutex_lock();
+ if (!list_empty(&master_list->completed)) {
+ if (master_done(master_list)) {
+ master_mutex_unlock();
+ return NULL;
+ }
+ master_mutex_unlock();
+ break;
+ }
+ master_mutex_unlock();
+
case SIGUSR1:
do_signals(master_list, sig);
break;
diff --git a/lib/master.c b/lib/master.c
index 762094f..e43f835 100644
--- a/lib/master.c
+++ b/lib/master.c
@@ -1182,7 +1182,6 @@ int master_done(struct master *master)
struct master_mapent *entry;
int res = 0;
- master_mutex_lock();
head = &master->completed;
p = head->next;
while (p != head) {
@@ -1195,7 +1194,6 @@ int master_done(struct master *master)
}
if (list_empty(&master->mounts))
res = 1;
- master_mutex_unlock();
return res;
}
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: Automounter stops after reload signal.
2009-04-24 4:54 ` Ian Kent
@ 2009-04-24 8:19 ` Stef Bon
2009-05-01 2:40 ` Ian Kent
0 siblings, 1 reply; 13+ messages in thread
From: Stef Bon @ 2009-04-24 8:19 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
Ian Kent wrote:
> Oops, that's not quite right.
> Try this instead, of course the CHANGELOG hunk might not apply.
>
> autofs-5.0.4 - library reload fix update fix
>
> From: Ian Kent <raven@themaw.net>
>
> The library reload fixes introduced a bug which causes autofs to
> incorrectly shutdown. Previously the signal handling thread only
> recieved signals either when they were explicity sent or it was
> time to shutdown so continuing on to call the signal handling
> routine was the correct thing to do. Now we need to join with
> the mount handling thread at exit but, in this case, we don't
> want to continue on to the signal handling routine as that will
> incorrectly cause the signal to be passed on to other mount
> handling threads.
> ---
>
> CHANGELOG | 1 +
> daemon/automount.c | 13 +++++++++++--
> lib/master.c | 2 --
> 3 files changed, 12 insertions(+), 4 deletions(-)
>
>
> diff --git a/CHANGELOG b/CHANGELOG
> index 7ca45fd..5e01812 100644
> --- a/CHANGELOG
> +++ b/CHANGELOG
> @@ -44,6 +44,7 @@
> - use intr option as hosts mount default.
> - fix kernel includes.
> - dont umount existing direct mount on master re-read.
> +- fix incorrect shutdown introduced by library relaod fixes.
>
> 4/11/2008 autofs-5.0.4
> -----------------------
> diff --git a/daemon/automount.c b/daemon/automount.c
> index 80691fa..d7e3e12 100644
> --- a/daemon/automount.c
> +++ b/daemon/automount.c
> @@ -1332,8 +1332,17 @@ static void *statemachine(void *arg)
> case SIGTERM:
> case SIGINT:
> case SIGUSR2:
> - if (master_done(master_list))
> - return NULL;
> + master_mutex_lock();
> + if (!list_empty(&master_list->completed)) {
> + if (master_done(master_list)) {
> + master_mutex_unlock();
> + return NULL;
> + }
> + master_mutex_unlock();
> + break;
> + }
> + master_mutex_unlock();
> +
> case SIGUSR1:
> do_signals(master_list, sig);
> break;
> diff --git a/lib/master.c b/lib/master.c
> index 762094f..e43f835 100644
> --- a/lib/master.c
> +++ b/lib/master.c
> @@ -1182,7 +1182,6 @@ int master_done(struct master *master)
> struct master_mapent *entry;
> int res = 0;
>
> - master_mutex_lock();
> head = &master->completed;
> p = head->next;
> while (p != head) {
> @@ -1195,7 +1194,6 @@ int master_done(struct master *master)
> }
> if (list_empty(&master->mounts))
> res = 1;
> - master_mutex_unlock();
>
> return res;
> }
>
>
Ok, thanks a lot! I will try this.
Stef Bon
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Automounter stops after reload signal.
2009-04-24 8:19 ` Stef Bon
@ 2009-05-01 2:40 ` Ian Kent
2009-05-02 23:52 ` Stef Bon
0 siblings, 1 reply; 13+ messages in thread
From: Ian Kent @ 2009-05-01 2:40 UTC (permalink / raw)
To: Stef Bon; +Cc: autofs
On Fri, Apr 24, 2009 at 10:19:19AM +0200, Stef Bon wrote:
> Ian Kent wrote:
>> Oops, that's not quite right.
>> Try this instead, of course the CHANGELOG hunk might not apply.
And there was another mistake in this patch.
This one hopefully will be the final form of the fix.
autofs-5.0.4 - library reload fix update fix
From: Ian Kent <raven@themaw.net>
The library reload fixes introduced a bug which causes autofs to
incorrectly shutdown. Previously the signal handling thread only
recieved signals either when they were explicity sent or it was
time to shutdown so continuing on to call the signal handling
routine was the correct thing to do. Now we need to join with
the mount handling thread at exit but, in this case, we don't
want to continue on to the signal handling routine as that will
incorrectly cause the signal to be passed on to other mount
handling threads.
---
CHANGELOG | 1 +
daemon/automount.c | 18 ++++++++++++++++--
lib/master.c | 2 --
3 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index 7ca45fd..5e01812 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -44,6 +44,7 @@
- use intr option as hosts mount default.
- fix kernel includes.
- dont umount existing direct mount on master re-read.
+- fix incorrect shutdown introduced by library relaod fixes.
4/11/2008 autofs-5.0.4
-----------------------
diff --git a/daemon/automount.c b/daemon/automount.c
index 80691fa..3a0fe0b 100644
--- a/daemon/automount.c
+++ b/daemon/automount.c
@@ -1332,8 +1332,22 @@ static void *statemachine(void *arg)
case SIGTERM:
case SIGINT:
case SIGUSR2:
- if (master_done(master_list))
- return NULL;
+ master_mutex_lock();
+ if (list_empty(&master_list->completed)) {
+ if (list_empty(&master_list->mounts)) {
+ master_mutex_unlock();
+ return NULL;
+ }
+ } else {
+ if (master_done(master_list)) {
+ master_mutex_unlock();
+ return NULL;
+ }
+ master_mutex_unlock();
+ break;
+ }
+ master_mutex_unlock();
+
case SIGUSR1:
do_signals(master_list, sig);
break;
diff --git a/lib/master.c b/lib/master.c
index 762094f..e43f835 100644
--- a/lib/master.c
+++ b/lib/master.c
@@ -1182,7 +1182,6 @@ int master_done(struct master *master)
struct master_mapent *entry;
int res = 0;
- master_mutex_lock();
head = &master->completed;
p = head->next;
while (p != head) {
@@ -1195,7 +1194,6 @@ int master_done(struct master *master)
}
if (list_empty(&master->mounts))
res = 1;
- master_mutex_unlock();
return res;
}
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: Automounter stops after reload signal.
2009-05-01 2:40 ` Ian Kent
@ 2009-05-02 23:52 ` Stef Bon
2009-05-03 3:16 ` Ian Kent
0 siblings, 1 reply; 13+ messages in thread
From: Stef Bon @ 2009-05-02 23:52 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
Ian Kent wrote:
> On Fri, Apr 24, 2009 at 10:19:19AM +0200, Stef Bon wrote:
>
>> Ian Kent wrote:
>>
>>> Oops, that's not quite right.
>>> Try this instead, of course the CHANGELOG hunk might not apply.
>>>
>
> And there was another mistake in this patch.
> This one hopefully will be the final form of the fix.
>
> autofs-5.0.4 - library reload fix update fix
>
Ok,
I have not been able to apply and test this patch. The last one is doing
very well.
I'll recompile autofs with this new patch and report this.
Stef Bon
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Automounter stops after reload signal.
2009-05-02 23:52 ` Stef Bon
@ 2009-05-03 3:16 ` Ian Kent
0 siblings, 0 replies; 13+ messages in thread
From: Ian Kent @ 2009-05-03 3:16 UTC (permalink / raw)
To: Stef Bon; +Cc: autofs
Stef Bon wrote:
> Ian Kent wrote:
>> On Fri, Apr 24, 2009 at 10:19:19AM +0200, Stef Bon wrote:
>>
>>> Ian Kent wrote:
>>>
>>>> Oops, that's not quite right.
>>>> Try this instead, of course the CHANGELOG hunk might not apply.
>>>>
>>
>> And there was another mistake in this patch.
>> This one hopefully will be the final form of the fix.
>>
>> autofs-5.0.4 - library reload fix update fix
>>
>
> Ok,
>
> I have not been able to apply and test this patch. The last one is doing
> very well.
The problem with the original patch was that, if autofs started with no
mounts in the master map (for some reason), it wasn't able to exit when
sent a TERM signal.
Ian
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-05-03 3:16 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-09 8:28 Automounter stops after reload signal Stef Bon
-- strict thread matches above, loose matches on Subject: below --
2009-04-08 16:14 Stef Bon
2009-04-12 14:08 ` Ian Kent
2009-04-12 17:59 ` Stef Bon
2009-04-13 5:49 ` Ian Kent
2009-04-13 8:34 ` Stef Bon
2009-04-13 9:01 ` Ian Kent
2009-04-24 4:31 ` Ian Kent
2009-04-24 4:54 ` Ian Kent
2009-04-24 8:19 ` Stef Bon
2009-05-01 2:40 ` Ian Kent
2009-05-02 23:52 ` Stef Bon
2009-05-03 3:16 ` Ian Kent
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.