]> 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)
committerChristian Brauner <christian.brauner@mailbox.org>
Mon, 28 Dec 2015 08:50:00 +0000 (09:50 +0100)
commitcd0f1eebe5786e7cc5ce8b8bbb0720f5ac0ccdad
tree03dd13a2918e316a564cd2f71e56cb0d1c7743fa
parent93d4475ec29fd8025c2dfdac8037ca841cb40f71
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]