From: Mi <mi.lists@alma.ch>
To: autofs@linux.kernel.org
Subject: Autofs wrongly tries to use NFS for a program map
Date: Wed, 29 Mar 2006 20:13:16 +0200 [thread overview]
Message-ID: <442ACE3C.5020600@alma.ch> (raw)
Hello,
I'm trying to use a program map for external Firewire drives, but autofs
seems to think it's supposed to be a NFS map, and fails.
I simplified things to a minimum to show the problem.
/etc/auto.test1 is a normal map which works.
/etc/auto.test2 is a program map which outputs the exact same content as
is in auto.test1, yet it fails:
# grep test /etc/auto.master
/test1 /etc/auto.test1 --timeout=60
/test2 /etc/auto.test2 --timeout=60
# cat /etc/auto.test1
sdb7 -fstype=ext3 :/dev/sdb7
# cat /etc/auto.test2
#!/bin/bash
echo "sdb7 -fstype=ext3 :/dev/sdb7"
The test2 program fails:
# ls /test2/sdb7
ls: /test2/sdb7: No such file or directory
While test1 works as expected:
# ls /test1/sdb7
lost+found
The error in /var/log/daemon.log shows the mount is wrongly attempted as
an nfs mount:
Mar 29 18:37:36 gc automount[22081]: mount(nfs): host sdb7: lookup
failure
Mar 29 18:37:36 gc automount[22081]: >> mount: directory to mount
not in host:dir format
Mar 29 18:37:36 gc automount[22081]: mount(nfs): nfs: mount failure
sdb7 on /test2/sdb7
Mar 29 18:37:36 gc automount[22081]: failed to mount /test2/sdb7
# automount -V
Linux automount version 4.1.4_beta2
# uname -a
Linux gc 2.6.8-2-686 #1 Tue Aug 16 13:22:48 UTC 2005 i686 GNU/Linux
Thanks fo any help.
MI
PS: In case you are curious why I want a program map for an external
drive, it is to be able to wake a sleeping drive. See
http://sourceforge.net/mailarchive/forum.php?thread_id=10069902&forum_id=5389
for details.
next reply other threads:[~2006-03-29 18:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-29 18:13 Mi [this message]
2006-03-29 19:38 ` Autofs wrongly tries to use NFS for a program map Jeff Moyer
2006-03-30 8:59 ` Mi
2006-03-30 14:29 ` Jeff Moyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=442ACE3C.5020600@alma.ch \
--to=mi.lists@alma.ch \
--cc=autofs@linux.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.