From 6a7c185e301689ac68b368190a31a38270869e0a Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Mon, 23 May 2011 14:46:48 +0000 Subject: [PATCH] Mention code layout in lvmetad DESIGN. --- daemons/lvmetad/DESIGN | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/daemons/lvmetad/DESIGN b/daemons/lvmetad/DESIGN index f846430e1..45e065160 100644 --- a/daemons/lvmetad/DESIGN +++ b/daemons/lvmetad/DESIGN @@ -184,3 +184,14 @@ Since (at least bare-bones) lvmetad has no disk interaction and is fed metadata externally, it should be very amenable to automated testing. We need to provide a client that can feed arbitrary, synthetic metadata to the daemon and request the data back, providing reasonable (nearly unit-level) testing infrastructure. + +Battle plan & code layout +========================= + +- config_tree from lib/config needs to move to libdm/ +- daemon/common *client* code can go to libdm/ as well (say + libdm/libdm-daemon.{h,c} or such) +- daemon/common *server* code stays, is built in daemon/ toplevel as a static + library, say libdaemon-common.a +- daemon/lvmetad *client* code goes to lib/lvmetad +- daemon/lvmetad *server* code stays (links in daemon/libdaemon_common.a) -- 2.43.5