Package: autofs
Version: 4.1.4-13
Severity: normal
I have an auto.master containing the line
/mnt/comtek /etc/auto.comtek --ghost --timeout=60
(though this problem seems to occur without --ghost)
auto.comtek contains lines of the form
ches4/ches4.log
-fstype=cifs,defaults,credentials=/etc/unixservers.smb,workgroup=,uid=0,gid=0,fmask=0770,dmask=0770
://10.4.1.204/ches4.log
This works initially. ('ls /mnt/comtek/ches4/ches4.log' works). After the
first timeout and remounted an extra directory is inserted, so the former
command becomes ('ls /mnt/comtek/ches4/ches4/ches4.log').
The documentation does not appear to explicitly state whether
subdirectories are supported within the map file. Nested directories in
maps would be a very useful feature though. If they are not supported
could the behaviour be changed to warn or something, rather than breaking
after first timeout?
I've included a log file of a session, in case it helps.
[startup]
Jul 1 16:14:27 pluto automount[20024]: starting automounter version 4.1.4,
path = /mnt/comtek, maptype = file, mapname = /etc/auto.comtek
Jul 1 16:14:27 pluto automount[20024]: Map argc = 1
Jul 1 16:14:27 pluto automount[20024]: Map argv[0] = /etc/auto.comtek
Jul 1 16:14:27 pluto automount[20024]: mount(bind): bind_works = 1
Jul 1 16:14:27 pluto automount[20024]: using kernel protocol version 4.00
Jul 1 16:14:27 pluto automount[20024]: using timeout 60 seconds; freq 15 secs
Jul 1 16:14:27 pluto automount[20024]: ghosting enabled
[Now do ls /mnt/comtek/ches4/ches4.log]
Jul 1 16:16:16 pluto automount[20272]: handle_packet: type = 0
Jul 1 16:16:16 pluto automount[20272]: handle_packet_missing: token 550, name
ches4/ches4.log
Jul 1 16:16:16 pluto automount[20272]: attempting to mount entry
/mnt/comtek/ches4/ches4.log
Jul 1 16:16:16 pluto automount[20278]: lookup(file): ches4/ches4.log ->
-fstype=cifs,defaults,credentials=/etc/unixservers.smb,workgroup=,uid=0,gid=0,fmask=0770,dmask=0770
://10.4.1.204/ches4.log
Jul 1 16:16:16 pluto automount[20278]: parse(sun): expanded entry:
-fstype=cifs,defaults,credentials=/etc/unixservers.smb,workgroup=,uid=0,gid=0,fmask=0770,dmask=0770
://10.4.1.204/ches4.log
Jul 1 16:16:16 pluto automount[20278]: parse(sun):
dequote("fstype=cifs,defaults,credentials=/etc/unixservers.smb,workgroup=,uid=0,gid=0,fmask=0770,dmask=0770")
->
fstype=cifs,defaults,credentials=/etc/unixservers.smb,workgroup=,uid=0,gid=0,fmask=0770,dmask=0770
Jul 1 16:16:16 pluto automount[20278]: parse(sun): gathered options:
fstype=cifs,defaults,credentials=/etc/unixservers.smb,workgroup=,uid=0,gid=0,fmask=0770,dmask=0770
Jul 1 16:16:16 pluto automount[20278]: parse(sun):
dequote("//10.4.1.204/ches4.log") -> //10.4.1.204/ches4.log
Jul 1 16:16:16 pluto automount[20278]: parse(sun): core of entry:
options=fstype=cifs,defaults,credentials=/etc/unixservers.smb,workgroup=,uid=0,gid=0,fmask=0770,dmask=0770,
loc=//10.4.1.204/ches4.log
Jul 1 16:16:16 pluto automount[20278]: parse(sun): mounting root /mnt/comtek,
mountpoint ches4/ches4.log, what //10.4.1.204/ches4.log, fstype cifs, options
defaults,credentials=/etc/unixservers.smb,workgroup=,uid=0,gid=0,fmask=0770,dmask=0770
Jul 1 16:16:16 pluto automount[20278]: do_mount //10.4.1.204/ches4.log
/mnt/comtek/ches4/ches4.log type cifs options
defaults,credentials=/etc/unixservers.smb,workgroup=,uid=0,gid=0,fmask=0770,dmask=0770
using module generic
Jul 1 16:16:16 pluto automount[20278]: mount(generic): calling mkdir_path
/mnt/comtek/ches4/ches4.log
Jul 1 16:16:16 pluto automount[20278]: mount(generic): calling mount -t cifs
-s -o
defaults,credentials=/etc/unixservers.smb,workgroup=,uid=0,gid=0,fmask=0770,dmask=0770
//10.4.1.204/ches4.log /mnt/comtek/ches4/ches4.log
Jul 1 16:16:16 pluto automount[20278]: >> WARNING: CIFS mount option 'fmask'
is deprecated. Use 'file_mode' instead.
Jul 1 16:16:16 pluto automount[20278]: >> WARNING: CIFS mount option 'dmask'
is deprecated. Use 'dir_mode' instead.
Jul 1 16:16:16 pluto automount[20278]: mount(generic): mounted
//10.4.1.204/ches4.log type cifs on /mnt/comtek/ches4/ches4.log
Jul 1 16:16:16 pluto automount[20272]: handle_child: got pid 20278, sig 0 (0),
stat 0
Jul 1 16:16:16 pluto automount[20272]: sig_child: found pending iop pid 20278:
signalled 0 (sig 0), exit status 0
Jul 1 16:16:16 pluto automount[20272]: send_ready: token=550
Jul 1 16:16:30 pluto automount[20272]: sig 14 switching from 1 to 2
Jul 1 16:16:30 pluto automount[20272]: get_pkt: state 1, next 2
Jul 1 16:16:30 pluto automount[20272]: st_expire(): state = 1
Jul 1 16:16:30 pluto automount[20272]: expire_proc: exp_proc=20286
Jul 1 16:16:30 pluto automount[20286]: expire_proc: 1 remaining in /mnt/comtek
Jul 1 16:16:30 pluto automount[20272]: handle_child: got pid 20286, sig 0 (0),
stat 1
Jul 1 16:16:30 pluto automount[20272]: sigchld: exp 20286 finished, switching
from 2 to 1
Jul 1 16:16:30 pluto automount[20272]: get_pkt: state 2, next 1
Jul 1 16:16:30 pluto automount[20272]: st_ready(): state = 2
[and expiry]
Jul 1 16:16:45 pluto automount[20272]: sig 14 switching from 1 to 2
Jul 1 16:16:45 pluto automount[20272]: get_pkt: state 1, next 2
Jul 1 16:16:45 pluto automount[20272]: st_expire(): state = 1
Jul 1 16:16:45 pluto automount[20272]: expire_proc: exp_proc=20287
Jul 1 16:16:45 pluto automount[20287]: expire_proc: 1 remaining in /mnt/comtek
Jul 1 16:16:45 pluto automount[20272]: handle_child: got pid 20287, sig 0 (0),
stat 1
Jul 1 16:16:45 pluto automount[20272]: sigchld: exp 20287 finished, switching
from 2 to 1
Jul 1 16:16:45 pluto automount[20272]: get_pkt: state 2, next 1
Jul 1 16:16:45 pluto automount[20272]: st_ready(): state = 2
[Now repeat ls /mnt/comtek/ches4/ches4.log]
Jul 1 16:17:51 pluto automount[20272]: handle_packet: type = 0
Jul 1 16:17:51 pluto automount[20272]: handle_packet_missing: token 558, name
ches4
Jul 1 16:17:51 pluto automount[20272]: attempting to mount entry
/mnt/comtek/ches4
Jul 1 16:17:51 pluto automount[20313]: lookup(file): ches4 -> -fstype=autofs
file:/etc/auto.comtek
Jul 1 16:17:51 pluto automount[20313]: parse(sun): expanded entry:
-fstype=autofs file:/etc/auto.comtek
Jul 1 16:17:51 pluto automount[20313]: parse(sun): dequote("fstype=autofs") ->
fstype=autofs
Jul 1 16:17:51 pluto automount[20313]: parse(sun): gathered options:
fstype=autofs
Jul 1 16:17:51 pluto automount[20313]: parse(sun):
dequote("file:/etc/auto.comtek") -> file:/etc/auto.comtek
Jul 1 16:17:51 pluto automount[20313]: parse(sun): core of entry:
options=fstype=autofs, loc=file:/etc/auto.comtek
Jul 1 16:17:51 pluto automount[20313]: parse(sun): mounting root /mnt/comtek,
mountpoint ches4, what file:/etc/auto.comtek, fstype autofs, options
Jul 1 16:17:51 pluto automount[20313]: do_mount file:/etc/auto.comtek
/mnt/comtek/ches4 type autofs options using module autofs
Jul 1 16:17:51 pluto automount[20313]: mount(autofs): calling mkdir_path
/mnt/comtek/ches4
Jul 1 16:17:51 pluto automount[20313]: mount(autofs):
fullpath=/mnt/comtek/ches4 what=file:/etc/auto.comtek options=
Jul 1 16:17:51 pluto automount[20314]: starting automounter version 4.1.4,
path = /mnt/comtek/ches4, maptype = file, mapname = /etc/auto.comtek
Jul 1 16:17:51 pluto automount[20314]: Map argc = 2
Jul 1 16:17:51 pluto automount[20314]: Map argv[0] = /etc/auto.comtek
Jul 1 16:17:51 pluto automount[20314]: Map argv[1] =
Jul 1 16:17:51 pluto automount[20314]: parse(sun): init gathered options:
Jul 1 16:17:51 pluto automount[20314]: mount(bind): bind_works = 1
Jul 1 16:17:51 pluto automount[20314]: using kernel protocol version 4.00
Jul 1 16:17:51 pluto automount[20314]: using timeout 60 seconds; freq 15 secs
Jul 1 16:17:51 pluto automount[20314]: ghosting enabled
Jul 1 16:17:51 pluto automount[20313]: mount(autofs): mounted
file:/etc/auto.comtek on /mnt/comtek/ches4
Jul 1 16:17:51 pluto automount[20272]: handle_child: got pid 20313, sig 0 (0),
stat 0
Jul 1 16:17:51 pluto automount[20272]: sig_child: found pending iop pid 20313:
signalled 0 (sig 0), exit status 0
Jul 1 16:17:51 pluto automount[20272]: send_ready: token=558
Jul 1 16:17:51 pluto automount[20314]: handle_packet: type = 0
Jul 1 16:17:51 pluto automount[20314]: handle_packet_missing: token 559, name
ches4.log
Jul 1 16:17:51 pluto automount[20314]: attempting to mount entry
/mnt/comtek/ches4/ches4.log
Jul 1 16:17:51 pluto automount[20318]: failed to mount
/mnt/comtek/ches4/ches4.log
Jul 1 16:17:51 pluto automount[20318]: umount_multi:
path=/mnt/comtek/ches4/ches4.log incl=1
Jul 1 16:17:51 pluto automount[20318]: umount_multi: no mounts found under
/mnt/comtek/ches4/ches4.log
Jul 1 16:17:51 pluto automount[20314]: handle_child: got pid 20318, sig 0 (0),
stat 1
Jul 1 16:17:51 pluto automount[20314]: sig_child: found pending iop pid 20318:
signalled 0 (sig 0), exit status 1
Jul 1 16:17:51 pluto automount[20314]: send_fail: token=559
Jul 1 16:17:51 pluto automount[20314]: handle_packet: type = 0
Jul 1 16:17:51 pluto automount[20314]: handle_packet_missing: token 560, name
ches4.log
Jul 1 16:17:51 pluto automount[20314]: attempting to mount entry
/mnt/comtek/ches4/ches4.log
Jul 1 16:17:51 pluto automount[20319]: failed to mount
/mnt/comtek/ches4/ches4.log
Jul 1 16:17:51 pluto automount[20319]: umount_multi:
path=/mnt/comtek/ches4/ches4.log incl=1
Jul 1 16:17:51 pluto automount[20319]: umount_multi: no mounts found under
/mnt/comtek/ches4/ches4.log
Jul 1 16:17:51 pluto automount[20314]: handle_child: got pid 20319, sig 0 (0),
stat 1
Jul 1 16:17:51 pluto automount[20314]: sig_child: found pending iop pid 20319:
signalled 0 (sig 0), exit status 1
Jul 1 16:17:51 pluto automount[20314]: send_fail: token=560
We can now do /mnt/comtek/ches4/ches4/ches4.log to access the file above, but
not /mnt/comtek/ches4/ches4
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Versions of packages autofs depends on:
ii libc6 2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii ucf 2.0020 Update Configuration File: preserv
Versions of packages autofs recommends:
ii nfs-common 1:1.0.10-6+etch.1 NFS support files common to client
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]