[libvirt] PATCH: 2/7: Re-arrange methods acros LXC source files

Jim Meyering jim at meyering.net
Mon Aug 11 17:16:20 UTC 2008


"Daniel P. Berrange" <berrange at redhat.com> wrote:
> The lxc_driver.c file contains quite a large amount of code,
> serving two reasonably well separated purposes. First there
> is the direct implemntation of each of the libvirt driver
> APIs. Second there is the code to spawn a container and a
> controller for forwarding I/O to/from the PTYs. This patch
> attempts to re-arrange the code across files to better reflect
> the split in functionality. The general idea is thus:
>
>  - lxc_driver.c: implementation of the libvirt driver APIs
>  - lxc_container.c: code for creating containers
>  - lxc_controller.c: code for managing an active container
>
> So this entails the following re-arrangement:

Most changes were straight function copies.
In the few cases where there were nontrivial changes,
they looked fine, though it was tedious to extract the diffs.

I liked the s/0/false/ and s/1/true/ changes.
It'd be nice to make more use of the "bool" type in libvirt.

ACK




More information about the libvir-list mailing list