Hello,
I have a small problem with autofs:
I run a mid-sized FTP server (25GB disk space, 15-25 GB of weekly
transfer, three virtual FTP servers, ProFTPD). Because of the virtual
FTP servers, I need to mount various parts of the main archive to the
chroot trees of these virtual servers. I wanted to use autofs for it, but
it does not work. Autofs (autofs-3.1.1-8 RPM from RH5.2) detects the
local nfs mount (even with explicit -fstype=nfs) and creates a symbolic
link instead of the local NFS mount. The symbolic link does not work
in FTP, because it points to the outside of the FTP chroot tree.
I have fixed this by the following quick&dirty patch:
--- autofs-3.1.1/modules/mount_nfs.c.orig Mon Apr 19 12:44:39 1999
+++ autofs-3.1.1/modules/mount_nfs.c Mon Apr 19 12:44:55 1999
@@ -152,7 +152,7 @@
}
} while (*hostname && !local);
- if ( local ) {
+ if ( local && 0 ) {
/* Local host -- do a symlink */
syslog(LOG_DEBUG, MODPREFIX "%s is local, symlinking", name);
But i want to ask you if there is any way to tell autofs
explicitly to use NFS even for local mounts. And, if it is not possible,
take this mail as a little hint or request-for-feature :-).
Please Cc: me in the replies, I am not member of this list.
Thanks,
-Yenya
--
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz> http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz 0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\ Czech Linux Homepage: http://www.linux.cz/ ///
/// I hope AFS dies a slow and painful death with people migrating \\\
// to better alternatives (coda, whatever). --Linus Torvalds \\