uvtd: ctx: link control/legacy nodes with VTs
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 5 Mar 2013 17:05:09 +0000 (18:05 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 5 Mar 2013 17:05:09 +0000 (18:05 +0100)
commit4307d9baf1fa22357572a097d5646ea14e493d36
tree687a4922cb1f347e507fd1d53949c8de6dc97db8
parente28da46b0568acd83e0bf4f297ac4ca6004e4ccf
uvtd: ctx: link control/legacy nodes with VTs

We now create a VT for each legacy node and assign all clients to it. For
control nodes, we create a different VT for each open-file/client.

Note that we do not recreate VTs or CDEVs directly on HUP instead of
during the next open() or reconfiguration. This avoids trapping into the
same error again and gives control to the user to recreate the nodes at
the right time.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
src/uvtd_ctx.c
src/uvtd_ctx.h