On Wed, Apr 2, 2008 at 11:19 AM, Ed Ravin <[EMAIL PROTECTED]> wrote:
> 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.

Noted; I think Jim's monitor does this already, so maybe I'll use that
as a basis.

Augie Schwer - [EMAIL PROTECTED] - http://schwer.us
Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072

mon mailing list

Reply via email to