From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Jurgens Subject: Re: Not correctly mount SMB shares ending in $ Date: Sat, 13 Sep 2008 22:30:34 +1000 Message-ID: <48CBB26A.2040205@edcint.co.nz> References: <48C5F518.9010800@edcint.co.nz> <1221018586.3030.63.camel@raven.themaw.net> <48C8D7FE.9000501@edcint.co.nz> <1221142584.28271.15.camel@raven.themaw.net> <48CB1F71.50407@edcint.co.nz> <1221275360.2965.3.camel@raven.themaw.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2408139331823514562==" Return-path: In-Reply-To: <1221275360.2965.3.camel@raven.themaw.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Ian Kent Cc: "autofs@linux.kernel.org" This is a multi-part message in MIME format. --===============2408139331823514562== Content-Type: multipart/alternative; boundary="------------050001080300070702010807" This is a multi-part message in MIME format. --------------050001080300070702010807 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Debug Log: Sep 16 01:03:11 tempgw automount[17954]: st_expire: state 1 path /misc Sep 16 01:03:11 tempgw automount[17954]: expire_proc: exp_proc = 3083123600 path /misc Sep 16 01:03:11 tempgw automount[17954]: expire_cleanup: got thid 3083123600 path /misc stat 0 Sep 16 01:03:11 tempgw automount[17954]: expire_cleanup: sigchld: exp 3083123600 finished, switching from 2 to 1 Sep 16 01:03:11 tempgw automount[17954]: st_ready: st_ready(): state = 2 path /misc Sep 16 01:03:12 tempgw automount[17954]: st_expire: state 1 path /misc Sep 16 01:03:12 tempgw automount[17954]: expire_proc: exp_proc = 3083123600 path /misc Sep 16 01:03:12 tempgw automount[17954]: expire_cleanup: got thid 3083123600 path /misc stat 0 Sep 16 01:03:12 tempgw automount[17954]: expire_cleanup: sigchld: exp 3083123600 finished, switching from 2 to 1 Sep 16 01:03:12 tempgw automount[17954]: st_ready: st_ready(): state = 2 path /misc Sep 16 01:03:12 tempgw automount[17954]: handle_packet: type = 3 Sep 16 01:03:12 tempgw automount[17954]: handle_packet_missing_indirect: token 344, name xp0, request pid 17592 Sep 16 01:03:12 tempgw automount[17954]: attempting to mount entry /smb/xp0 Sep 16 01:03:12 tempgw automount[17954]: lookup_mount: lookup(program): looking up xp0 Sep 16 01:03:13 tempgw automount[17954]: lookup_mount: lookup(program): xp0 -> -fstype=cifs,username=USER,password=PASSWORD #011 /C "://xp0/C" #011 /ADMIN\$ "://xp0/ADMIN\$" #011 /C\$ "://xp0/C\$" Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): expanded entry: -fstype=cifs,username=USER,password=PASSWORD #011 /C "://xp0/C" #011 /ADMIN\$ "://xp0/ADMIN\$" #011 /C\$ "://xp0/C\$" Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): gathered options: fstype=cifs,username=USER,password=PASSWORD Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): dequote("/C") -> /C Sep 16 01:03:13 tempgw automount[17954]: parse_mapent: parse(sun): gathered options: fstype=cifs,username=USER,password=PASSWORD Sep 16 01:03:13 tempgw automount[17954]: parse_mapent: parse(sun): dequote(""://xp0/C"") -> ://xp0/C Sep 16 01:03:13 tempgw automount[17954]: add_offset_entry: parse(sun): added multi-mount offset /C -> -fstype=cifs,username=USER,password=PASSWORD ://xp0/C Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): dequote("/ADMIN\$") -> /ADMIN$ Sep 16 01:03:13 tempgw automount[17954]: parse_mapent: parse(sun): gathered options: fstype=cifs,username=USER,password=PASSWORD Sep 16 01:03:13 tempgw automount[17954]: parse_mapent: parse(sun): dequote(""://xp0/ADMIN\$"") -> ://xp0/ADMIN\$ Sep 16 01:03:13 tempgw automount[17954]: add_offset_entry: parse(sun): added multi-mount offset /ADMIN$ -> -fstype=cifs,username=USER,password=PASSWORD ://xp0/ADMIN\$ Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): dequote("/C\$") -> /C$ Sep 16 01:03:13 tempgw automount[17954]: parse_mapent: parse(sun): gathered options: fstype=cifs,username=USER,password=PASSWORD Sep 16 01:03:13 tempgw automount[17954]: parse_mapent: parse(sun): dequote(""://xp0/C\$"") -> ://xp0/C\$ Sep 16 01:03:13 tempgw automount[17954]: add_offset_entry: parse(sun): added multi-mount offset /C$ -> -fstype=cifs,username=USER,password=PASSWORD ://xp0/C\$ Sep 16 01:03:13 tempgw automount[17954]: mount_multi_triggers: mount offset /smb/xp0/ADMIN$ Sep 16 01:03:13 tempgw automount[17954]: mount_autofs_offset: calling mount -t autofs -s -o fd=18,pgrp=17954,minproto=5,maxproto=5,offset automount /smb/xp0/ADMIN$ Sep 16 01:03:13 tempgw automount[17954]: mount_autofs_offset: mounted trigger /smb/xp0/ADMIN$ Sep 16 01:03:13 tempgw automount[17954]: mount_multi_triggers: mount offset /smb/xp0/C Sep 16 01:03:13 tempgw automount[17954]: mount_autofs_offset: calling mount -t autofs -s -o fd=18,pgrp=17954,minproto=5,maxproto=5,offset automount /smb/xp0/C Sep 16 01:03:13 tempgw automount[17954]: mount_autofs_offset: mounted trigger /smb/xp0/C Sep 16 01:03:13 tempgw automount[17954]: mount_multi_triggers: mount offset /smb/xp0/C$ Sep 16 01:03:13 tempgw automount[17954]: mount_autofs_offset: calling mount -t autofs -s -o fd=18,pgrp=17954,minproto=5,maxproto=5,offset automount /smb/xp0/C$ Sep 16 01:03:13 tempgw automount[17954]: mount_autofs_offset: mounted trigger /smb/xp0/C$ Sep 16 01:03:13 tempgw automount[17954]: send_ready: token = 344 Sep 16 01:03:13 tempgw automount[17954]: handle_packet: type = 5 Sep 16 01:03:13 tempgw automount[17954]: handle_packet_missing_direct: token 345, name /smb/xp0/C$, request pid 17592 Sep 16 01:03:13 tempgw automount[17954]: attempting to mount entry /smb/xp0/C$ Sep 16 01:03:13 tempgw automount[17954]: lookup_mount: lookup(program): /smb/xp0/C$ -> -fstype=cifs,username=USER,password=PASSWORD ://xp0/C\$ Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): expanded entry: -fstype=cifs,username=USER,password=PASSWORD ://xp0/C\$ Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): gathered options: fstype=cifs,username=USER,password=PASSWORD Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): core of entry: options=fstype=cifs,username=USER,password=PASSWORD, loc=://xp0/C\$ Sep 16 01:03:13 tempgw automount[17954]: sun_mount: parse(sun): mounting root /smb, mountpoint /smb/xp0/C$, what //xp0/C\$, fstype cifs, options username=USER,password=PASSWORD Sep 16 01:03:13 tempgw automount[17954]: mounted /smb/xp0 Sep 16 01:03:13 tempgw automount[17954]: do_mount: //xp0/C\$ /smb//smb/xp0/C$ type cifs options username=USER,password=PASSWORD using module generic Sep 16 01:03:13 tempgw automount[17954]: mount_mount: mount(generic): calling mkdir_path /smb/xp0/C$ Sep 16 01:03:13 tempgw automount[17954]: mount_mount: mount(generic): calling mount -t cifs -s -o username=USER,password=PASSWORD //xp0/C\$ /smb/xp0/C$ Sep 16 01:03:13 tempgw automount[17954]: mount(generic): mounted //xp0/C\$ type cifs on /smb/xp0/C$ Sep 16 01:03:13 tempgw automount[17954]: send_ready: token = 345 Sep 16 01:03:13 tempgw automount[17954]: mounted /smb/xp0/C$ Sep 16 01:03:13 tempgw automount[17954]: st_expire: state 1 path /misc Sep 16 01:03:13 tempgw automount[17954]: expire_proc: exp_proc = 3082075024 path /misc Sep 16 01:03:13 tempgw automount[17954]: expire_cleanup: got thid 3082075024 path /misc stat 0 Sep 16 01:03:13 tempgw automount[17954]: expire_cleanup: sigchld: exp 3082075024 finished, switching from 2 to 1 Sep 16 01:03:13 tempgw automount[17954]: st_ready: st_ready(): state = 2 path /misc After cd /smb/xp0/C$ pwd yields: /smb/xp0/C$ and mount yields: //xp0/C/$ on /smb/xp0/C$ type cifs (rw,mand) Thanks Ian Kent wrote: > On Sat, 2008-09-13 at 12:03 +1000, Matthew Jurgens wrote: > >> Ok, so I updated the script to the RPM version and added the >> authentication parts: >> > > Right, the reason the script changed was because of the "$" shares. > I thought it was working ok but maybe a subsequent change to the daemon > has broken it. > > I'll try to duplicate the problem here but a debug log would also be > useful. See http://people.redhat.com/jmoyer for details. --------------050001080300070702010807 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Debug Log:

Sep 16 01:03:11 tempgw automount[17954]: st_expire: state 1 path /misc
Sep 16 01:03:11 tempgw automount[17954]: expire_proc: exp_proc = 3083123600 path /misc
Sep 16 01:03:11 tempgw automount[17954]: expire_cleanup: got thid 3083123600 path /misc stat 0
Sep 16 01:03:11 tempgw automount[17954]: expire_cleanup: sigchld: exp 3083123600 finished, switching from 2 to 1
Sep 16 01:03:11 tempgw automount[17954]: st_ready: st_ready(): state = 2 path /misc
Sep 16 01:03:12 tempgw automount[17954]: st_expire: state 1 path /misc
Sep 16 01:03:12 tempgw automount[17954]: expire_proc: exp_proc = 3083123600 path /misc
Sep 16 01:03:12 tempgw automount[17954]: expire_cleanup: got thid 3083123600 path /misc stat 0
Sep 16 01:03:12 tempgw automount[17954]: expire_cleanup: sigchld: exp 3083123600 finished, switching from 2 to 1
Sep 16 01:03:12 tempgw automount[17954]: st_ready: st_ready(): state = 2 path /misc
Sep 16 01:03:12 tempgw automount[17954]: handle_packet: type = 3
Sep 16 01:03:12 tempgw automount[17954]: handle_packet_missing_indirect: token 344, name xp0, request pid 17592
Sep 16 01:03:12 tempgw automount[17954]: attempting to mount entry /smb/xp0
Sep 16 01:03:12 tempgw automount[17954]: lookup_mount: lookup(program): looking up xp0
Sep 16 01:03:13 tempgw automount[17954]: lookup_mount: lookup(program): xp0 -> -fstype=cifs,username=USER,password=PASSWORD  #011 /C "://xp0/C"  #011 /ADMIN\$ "://xp0/ADMIN\$"  #011 /C\$ "://xp0/C\$"
Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): expanded entry: -fstype=cifs,username=USER,password=PASSWORD  #011 /C "://xp0/C"  #011 /ADMIN\$ "://xp0/ADMIN\$"  #011 /C\$ "://xp0/C\$"
Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): gathered options: fstype=cifs,username=USER,password=PASSWORD
Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): dequote("/C") -> /C
Sep 16 01:03:13 tempgw automount[17954]: parse_mapent: parse(sun): gathered options: fstype=cifs,username=USER,password=PASSWORD
Sep 16 01:03:13 tempgw automount[17954]: parse_mapent: parse(sun): dequote(""://xp0/C"") -> ://xp0/C
Sep 16 01:03:13 tempgw automount[17954]: add_offset_entry: parse(sun): added multi-mount offset /C -> -fstype=cifs,username=USER,password=PASSWORD ://xp0/C
Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): dequote("/ADMIN\$") -> /ADMIN$
Sep 16 01:03:13 tempgw automount[17954]: parse_mapent: parse(sun): gathered options: fstype=cifs,username=USER,password=PASSWORD
Sep 16 01:03:13 tempgw automount[17954]: parse_mapent: parse(sun): dequote(""://xp0/ADMIN\$"") -> ://xp0/ADMIN\$
Sep 16 01:03:13 tempgw automount[17954]: add_offset_entry: parse(sun): added multi-mount offset /ADMIN$ -> -fstype=cifs,username=USER,password=PASSWORD ://xp0/ADMIN\$
Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): dequote("/C\$") -> /C$
Sep 16 01:03:13 tempgw automount[17954]: parse_mapent: parse(sun): gathered options: fstype=cifs,username=USER,password=PASSWORD
Sep 16 01:03:13 tempgw automount[17954]: parse_mapent: parse(sun): dequote(""://xp0/C\$"") -> ://xp0/C\$
Sep 16 01:03:13 tempgw automount[17954]: add_offset_entry: parse(sun): added multi-mount offset /C$ -> -fstype=cifs,username=USER,password=PASSWORD ://xp0/C\$
Sep 16 01:03:13 tempgw automount[17954]: mount_multi_triggers: mount offset /smb/xp0/ADMIN$
Sep 16 01:03:13 tempgw automount[17954]: mount_autofs_offset: calling mount -t autofs -s  -o fd=18,pgrp=17954,minproto=5,maxproto=5,offset automount /smb/xp0/ADMIN$
Sep 16 01:03:13 tempgw automount[17954]: mount_autofs_offset: mounted trigger /smb/xp0/ADMIN$
Sep 16 01:03:13 tempgw automount[17954]: mount_multi_triggers: mount offset /smb/xp0/C
Sep 16 01:03:13 tempgw automount[17954]: mount_autofs_offset: calling mount -t autofs -s  -o fd=18,pgrp=17954,minproto=5,maxproto=5,offset automount /smb/xp0/C
Sep 16 01:03:13 tempgw automount[17954]: mount_autofs_offset: mounted trigger /smb/xp0/C
Sep 16 01:03:13 tempgw automount[17954]: mount_multi_triggers: mount offset /smb/xp0/C$
Sep 16 01:03:13 tempgw automount[17954]: mount_autofs_offset: calling mount -t autofs -s  -o fd=18,pgrp=17954,minproto=5,maxproto=5,offset automount /smb/xp0/C$
Sep 16 01:03:13 tempgw automount[17954]: mount_autofs_offset: mounted trigger /smb/xp0/C$
Sep 16 01:03:13 tempgw automount[17954]: send_ready: token = 344
Sep 16 01:03:13 tempgw automount[17954]: handle_packet: type = 5
Sep 16 01:03:13 tempgw automount[17954]: handle_packet_missing_direct: token 345, name /smb/xp0/C$, request pid 17592
Sep 16 01:03:13 tempgw automount[17954]: attempting to mount entry /smb/xp0/C$
Sep 16 01:03:13 tempgw automount[17954]: lookup_mount: lookup(program): /smb/xp0/C$ -> -fstype=cifs,username=USER,password=PASSWORD ://xp0/C\$
Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): expanded entry: -fstype=cifs,username=USER,password=PASSWORD ://xp0/C\$
Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): gathered options: fstype=cifs,username=USER,password=PASSWORD
Sep 16 01:03:13 tempgw automount[17954]: parse_mount: parse(sun): core of entry: options=fstype=cifs,username=USER,password=PASSWORD, loc=://xp0/C\$
Sep 16 01:03:13 tempgw automount[17954]: sun_mount: parse(sun): mounting root /smb, mountpoint /smb/xp0/C$, what //xp0/C\$, fstype cifs, options username=USER,password=PASSWORD
Sep 16 01:03:13 tempgw automount[17954]: mounted /smb/xp0
Sep 16 01:03:13 tempgw automount[17954]: do_mount: //xp0/C\$ /smb//smb/xp0/C$ type cifs options username=USER,password=PASSWORD using module generic
Sep 16 01:03:13 tempgw automount[17954]: mount_mount: mount(generic): calling mkdir_path /smb/xp0/C$
Sep 16 01:03:13 tempgw automount[17954]: mount_mount: mount(generic): calling mount -t cifs -s -o username=USER,password=PASSWORD //xp0/C\$ /smb/xp0/C$
Sep 16 01:03:13 tempgw automount[17954]: mount(generic): mounted //xp0/C\$ type cifs on /smb/xp0/C$
Sep 16 01:03:13 tempgw automount[17954]: send_ready: token = 345
Sep 16 01:03:13 tempgw automount[17954]: mounted /smb/xp0/C$
Sep 16 01:03:13 tempgw automount[17954]: st_expire: state 1 path /misc
Sep 16 01:03:13 tempgw automount[17954]: expire_proc: exp_proc = 3082075024 path /misc
Sep 16 01:03:13 tempgw automount[17954]: expire_cleanup: got thid 3082075024 path /misc stat 0
Sep 16 01:03:13 tempgw automount[17954]: expire_cleanup: sigchld: exp 3082075024 finished, switching from 2 to 1
Sep 16 01:03:13 tempgw automount[17954]: st_ready: st_ready(): state = 2 path /misc



After cd /smb/xp0/C$
pwd yields: /smb/xp0/C$
and mount yields: //xp0/C/$ on /smb/xp0/C$ type cifs (rw,mand)

Thanks

Ian Kent wrote:
On Sat, 2008-09-13 at 12:03 +1000, Matthew Jurgens wrote:
  
Ok, so I updated the script to the RPM version and added the
authentication parts:
    

Right, the reason the script changed was because of the "$" shares.
I thought it was working ok but maybe a subsequent change to the daemon
has broken it.

I'll try to duplicate the problem here but a debug log would also be
useful. See http://people.redhat.com/jmoyer for details.
--------------050001080300070702010807-- --===============2408139331823514562== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs --===============2408139331823514562==--