DragonFly BSD
DragonFly kernel List (threaded) for 2003-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: libcaps thread testing code committed

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 10 Dec 2003 12:15:28 -0800 (PST)

:The problem is there are two ways to update the config files in /etc.
:For files like master.passwd a copy is edited and then renamed
:atomically. That is fine for automatic rebuilding. Others like
:/etc/hosts don't have such functionality and rebuilding them as soon
:as they change feels wrong.
:What I thought about is using internally DBM or the even simpler CDB
:files and rebuild them either when the source changes or the user
:requests an update. This can happen in a separate daemon. As soon
:as the IPC server detects a change in its database directory, it
:reopens the DB files and starts using the new versions. One side
:effect is that this allows the IPC server to run fully chrooted
:when using just DB files or network services as backends.

    I don't think DBM or CDB matters... those are file formats.  With
    an IPC server we don't need to generates database files at all, 
    the server just loads the flatfile into ram and indexes it in ram.

    (That is, those IPC services which are backed by flatfiles.  Obviously
    IPC services can be backed by other things, like LDAP).

					Matthew Dillon 

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]