On Wed, 2006-11-08 at 22:25 -0500, Jeff Moyer wrote: > ==> On Thu, 09 Nov 2006 11:17:09 +0800, Ian Kent <[EMAIL PROTECTED]> said: > > Ian> On Wed, 2006-11-08 at 22:03 -0500, Jeff Moyer wrote: > Hi, Ian, > Ian> list, > Ian> > > Ian> > Here is a patch to consult /proc/mounts instead of /etc/mtab > Ian> when > deciding if a path has already been mounted. The problem > Ian> with using > /etc/mtab, as you know, is that it sometimes does > Ian> not get updated. We > know that /proc/mounts will always be > Ian> right, so why not use it? > > Ian> Good for v4 but keep in mind that in v5 /proc/mounts can have a > Ian> lot of entries compared to /etc/mtab. The cost of doing this can > Ian> be quite high. mount(8) must play well with mtab for v5. > > It's not just mount(8), but also the caller's responsibility. You > have to be sure to check for the mtab not updated return value, and > issue another mount call to try to update it.
Ya .. been there before. I'll need to check that. Ian _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
