This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: make snmplib use CYGINT_IO_FILEIO_FS interface
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Cc: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 06 Dec 2002 09:25:44 -0700
- Subject: Re: make snmplib use CYGINT_IO_FILEIO_FS interface
- References: <20021206161816.GW22415@biferten.ma.tech.ascom.ch>
On Fri, 2002-12-06 at 09:18, Andrew Lunn wrote:
> Hi folks
>
> This patch supersedes part of my previous snmp patch. It changes the
> cdl to make use of the CYGINT_IO_FILEIO_FS interface to determine if
> there are any filesystems in the system.
>
Why not make both of those "requires" to be "active_if"? Then the
default can be "1". If the guy selects SNMP and has file system support
in place, then he'll automatically get this support as well.
> Andrew
>
> Index: net/snmp/lib/current/ChangeLog
> ===================================================================
> RCS file: /cvs/ecos/ecos-opt/snmp/lib/current/ChangeLog,v
> retrieving revision 1.8
> diff -u -r1.8 ChangeLog
> --- net/snmp/lib/current/ChangeLog 23 May 2002 23:08:14 -0000 1.8
> +++ net/snmp/lib/current/ChangeLog 6 Dec 2002 16:15:34 -0000
> @@ -1,3 +1,18 @@
> +2002-12-06 Andrew Lunn <andrew.lunn@ascom.ch>
> +
> + * cdl/snmplib.cdl: Make use of the CYGINT_IO_FILEIO_FS interface
> + to determine if there are any filesystems in the system.
> +
> +2002-11-11 Manu Sharma <manu.sharma@ascom.com>
> +
> + * cdl/snmplib.cdl: Added new component
> + CYGPKG_SNMPLIB_FILESYSTEM_SUPPORT to support usage of the
> + snmpd.conf file based agent configuration.
> +
> + * src/read_config.c: Include functions that read the snmpd.conf
> + file and setup the infrastructure based on configurations in
> + this file.
> +
> 2002-02-01 Gary Thomas <gthomas@redhat.com>
>
> * src/system.c:
> Index: net/snmp/lib/current/cdl/snmplib.cdl
> ===================================================================
> RCS file: /cvs/ecos/ecos-opt/snmp/lib/current/cdl/snmplib.cdl,v
> retrieving revision 1.4
> diff -u -r1.4 snmplib.cdl
> --- net/snmp/lib/current/cdl/snmplib.cdl 23 May 2002 23:08:14 -0000 1.4
> +++ net/snmp/lib/current/cdl/snmplib.cdl 6 Dec 2002 16:15:35 -0000
> @@ -104,6 +104,30 @@
> activity, often enough to make your SNMP client time out."
> }
>
> + cdl_component CYGPKG_SNMPLIB_FILESYSTEM_SUPPORT {
> + display "SNMP file-system options"
> + description "
> + This option enables file-system dependent functionality,
> + eg snmp.conf"
> +
> + requires CYGPKG_IO_FILEIO
> + requires { CYGINT_IO_FILEIO_FS > 0 }
> +
> + flavor bool
> + default_value 0
> +
> + cdl_option CYGPKG_SNMPLIB_PERSISTENT_FILESYSTEM {
> + display "Persistent filesystem support"
> + flavor bool
> + default_value 0
> + description "
> + This option enables functions that would require a
> + persistent file-system to be available. This
> + would be required if a system needs to save backups
> + of the snmpd.conf files."
> + }
> + }
> +
> cdl_component CYGPKG_SNMPLIB_OPTIONS {
> display "SNMP library build options"
> flavor none
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
http://www.ecoscentric.com/ |
email: <gthomas@ecoscentric.com> |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------