On Wed, Apr 02, 2008 at 10:49:00AM -0700, Augie Schwer wrote:
> On the topic of NFS; the next step would be to do a compare between
> mtab and fstab and alert if everything you thought was mounted
> actually wasn't; seems pretty trivial, but anyone already have
> something written up?

No, but remember that the location and semantics of mount tables varies
drastically with the operating system - Solaris, for example (and IIRC),
keeps the mount table in-kernel, and you need to call an API to see what's
mounted.  The equivalent of mtab is actually a device driver that calls
the API, not a regular file.  So don't hard code any paths and use
"test -e" (existence), not "test -f" (exists and is a regular file) when
scripting in the sanity checks.

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to