On Tue, 29 Jun 2004, Bruce Shaw wrote: > We're intending a major rewrite of the code for Solaris. > > >However, FSType didn't quite work the way we expected it > to. When the daemon is starts, it caches up the information from > getmntent. > > I consider this to be a Bad Thing, which I intend to change on Solaris (I'm > whiteboarding it right now) > > > >When subsequent calls are made to FSType, the answer reflects > the filesystem's type at startup. We wanted to be able to detect when > GPFS becomes unmounted by seeing if the filesystem type changes to the > underlying type. To accomplish this, I borrowed from the hrStorageUsed > code and call fstat to get the filesystem type every time. Does this go > against the original intent of the code? > > Personally don't intend on worrying too much about the original intent of > the code. (Go ahead and yell at me)
I actually like part of the caching aspect because it helps you detect when filesystems become unmounted. If you start snmpd with everything working, you can tell what is not working as long as you check the attributes on the fly. Is there a better way to tell when something like GPFS or NFS becomes unmounted? Steven. -- Steven M. Carter "A foolish consistency is the hobgoblin of Oak Ridge National Laboratory little minds, adored by little statesmen [EMAIL PROTECTED] and philosophers and divines." -- Emerson ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
