On Mon, 2009-02-02 at 20:55 -0700, Michael Loftis wrote: > > --On February 3, 2009 12:34:36 PM +0900 Ian Kent <ra...@themaw.net> wrote: > > > > Using "-n" is likely a problem for autofs prior to 5.0.4 but would also > > require the 2.6.28 kernel module patch update for the kernel you are > > using and you need to tell autofs to use the newly introduced ioctl > > interface otherwise it will still scan mtab from time to time, expecting > > it to be up to date. > > > > But, once the above is in place it should be possible to use a "-n" on > > the mount commands without affecting autofs function. Not sure the best > > way to provide that though. > > hmmm food for thought anyway. I'm always leery of moving forward to newer > linux kernels, not much of a problem in Debian since they pick a version > and keep with it throughout a release. I may or may not have time to > dedicated to work with the patch you provided for autofs5 immediately, > right now our push is to just get this deployed. I didn't realize the > automounter scanned mtab though, so that's good to know.
The main problem arises because we need to check if something is mounted a lot and /proc/mounts can be much larger than the mtab. The kernel update I mention above was needed for another reason but an operation to check mounted-ness was added at the same time to eliminate the need to look at the mtab. You might not need to go to a new kernel but I've only ported this particular patch as far back at 2.6.22 at this stage. I need to do a port back to 2.6.18 at some point soon so maybe that will cover most of the work needed for the in-between version as well. Anyway, it is still a big change so it really is your call as to whether it is worth the effort from yourselves, but this is the story, to the best of my knowledge anyway. Ian _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs