[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [BusyBox] Busybox [PATCH] new devfsd applet.
From: Tito <farmatito () tiscali ! it>
Date: 2003-09-30 14:42:34
[Download RAW message or body]
Hi to all,
following the thread started by Matteo Croce and using some fo his work
and the advices from the list I worked out a devfsd applet for busybox.
The size in the base config now is: 18936 bytes for miscutils/devfsd.o
Busybox devfsd known limitations are:
UNSUPPORTED COMMANDLINE SWITCHES:
-d Run devfsd in debug mode. Used for debugging the kernel-side
protocol implemented by devfs. This also prints the protocol
version numbers. In this mode the daemon runs in the foreground.
-t num Set the trace level to num. If the level is greater than 0 then
output is sent to stderr rather than syslog(3). If the level is
greater than 1 then devfsd will run in trace mode. Higher levels
yield more trace information.
-D mask
Set the debug mask for devfs.
UNSUPPORTED DEVFSD.CONF KEYWORDS:
MODLOAD
Maybe as suggested on the mailing list this could be substituted
with EXECUTE /sbin/modprobe <something>, but I've not tested it.
MFUNCTION (substitute with EXECUTE <command>)
CFUNCTION (substitute with EXECUTE <command>)
#DELETE .* CFUNCTION GLOBAL unlink /lib/dev-state/$devname
DELETE .* EXECUTE /bin/rm -f /lib/dev-state/$devname
#REGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL mksymlink $devname cdrom
#UNREGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL unlink cdrom
REGISTER ^cdroms/cdrom0$ EXECUTE /bin/ln -sf $devname cdrom
UNREGISTER ^cdroms/cdrom0$ EXECUTE /bin/rm -f cdrom
OTHER:
Logging reduced to a minimum: most of the messages not linked with an exit() call are \
ignored. Set CONFIG_DEVFSD_VERBOSE to increase logging to stderr (!)and syslog ( and \
binary size: ~+1.5 kb ). Set CONFIG_DEVFSD_DEBUG to to have also function names \
printed ( binary size: ~+1.5 kb ).
WARNING:
This is still very alfa, the only testing I've done was to substitute it to the \
original devfsd on my MDK 9.1 using a customized devfsd.conf file (attached) and \
running it for the last two days. Until now everything worked as expected, \
but.....................
The patch is against todays CVS (30-09-2003).
Thanks in advance and please apply if you like it.
Ciao,
Tito
["devfsd.conf.gz" (application/x-gzip)]
["bb_devfsd_patch.txt.gz" (application/x-gzip)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic