==> On Mon, 23 Jul 2007 15:34:14 +0200, [EMAIL PROTECTED] (Michaël Cadilhac) 
said:

Michaël> Hi guys!
Michaël> I have a NIS based automount configuration that reads like that :

Michaël> lri4-154 linux # ypcat -k auto.master
Michaël> /special auto.special  -rw,intr,soft
Michaël> /servers auto.servers  -rw,intr,soft
Michaël> /local auto.local    -rw,intr,soft
Michaël> /u auto.u            -rw,intr,soft,nosuid
Michaël> /tmpsim auto.tmpsim     -rw,intr,soft
Michaël> /users auto.users    
-rw,intr,hard,nosuid,tcp,nfsvers=3,timeo=600,retrans=2

Michaël> Didn't seem like a badly formatted one. So I launched autofs, and 
here's
Michaël> what it said :

Michaël>  * Starting automounter ...
Michaël>  /special/usr/sbin/automount: option -t requires a numeric argument, 
got r,soft
Michaël>  * Failure on /special
Michaël>  /servers/usr/sbin/automount: option -t requires a numeric argument, 
got r,soft
Michaël>  * Failure on /servers
Michaël>  /local/usr/sbin/automount: option -t requires a numeric argument, got 
r,soft
Michaël>  * Failure on /local
Michaël>  /u/usr/sbin/automount: option -t requires a numeric argument, got 
r,soft,nosuid
Michaël>  * Failure on /u
Michaël>  /tmpsim/usr/sbin/automount: option -t requires a numeric argument, 
got r,soft
Michaël>  * Failure on /tmpsim
Michaël>  /users/usr/sbin/automount: option -t requires a numeric argument, got 
r,hard,nosuid,tcp,nfsvers=3,timeo=600,retrans=2
Michaël>  * Failure on /users

Michaël> Point is that the `-rw,int' is interpreted by the getopt like a bunch 
of
Michaël> not understood options then a `t', as in `timeout'. So the next part,
Michaël> e.g. `r,soft', is considered as the argument of `timeout' which is not
Michaël> quite good.

Michaël> What I did is that I removed the short opts for getopt in the init.d
Michaël> script, but I'm not quite sure it's The Right Thing to Do.

Michaël> Maybe the config got from nis is faulty, if so, just tell me, I'll
Michaël> despise my sysadmin.

Michaël> Thanks!

Michaël> PS: In fact, it seems that the mount options are not applied at
Michaël> all. Don't have a clue why.

Michaël> lri4-154 linux # automount --version
Michaël> Linux automount version 4.1.3

You are most likely running into a bug in the parsing done in the init
script.  What does '/etc/init.d/autofs status' show?

I have a couple of patches to fix that up.  I don't have a gentoo
source tree, though.  If you can point me at one, I can likely send
you a patch to try.

-Jeff

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to