]> git.ipfire.org Git - thirdparty/lxc.git/commit
Split bdev into modules: lxcrsync
authorChristian Brauner <christian.brauner@mailbox.org>
Thu, 17 Dec 2015 23:24:32 +0000 (00:24 +0100)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 28 Dec 2015 22:36:47 +0000 (14:36 -0800)
commite9df7e1a94a693f74293b3f6cfe37268a830162b
tree03dd13a2918e316a564cd2f71e56cb0d1c7743fa
parent988be9c1378e4a1af305f5cdd163ad9cd48b41ab
Split bdev into modules: lxcrsync

The functions:

        - do_rsync();
        - rsync_delta();
        - rsync_delta_wrapper();
        - rsync_rootfs();
        - rsync_rootfs_wrapper();

and the structs

        - struct rsync_data;
        - struct rsync_data_char;

move from bdev.{c,h} to lxcrsync.{c.h}. All functions previously declared as
static become public.

lxcrsync.{c,h} should allow for a reasonable amount of abstraction regarding
our rsync functions. Some of the functions could easily be abstracted.

Adapt Makefile.am to include lxcrsync.{c,h}.

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
src/lxc/Makefile.am
src/lxc/bdev/bdev.c
src/lxc/bdev/bdev.h
src/lxc/bdev/lxcbtrfs.c
src/lxc/bdev/lxcrsync.c [new file with mode: 0644]
src/lxc/bdev/lxcrsync.h [new file with mode: 0644]