]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxcbtrfs.{c,h} rework declarations and definitions
authorChristian Brauner <christian.brauner@mailbox.org>
Thu, 17 Dec 2015 20:14:30 +0000 (21:14 +0100)
committerChristian Brauner <christian.brauner@mailbox.org>
Mon, 28 Dec 2015 08:49:33 +0000 (09:49 +0100)
commit93d4475ec29fd8025c2dfdac8037ca841cb40f71
treef56648629b4a293c03ef82026ecb2e32049bddc9
parentf2e50c442dd40325ec75ff9be32da72dc28b371a
lxcbtrfs.{c,h} rework declarations and definitions

Declare

- btrfs_same_fs();
- btrfs_snapshot();

extern instead of static in lxcbtrfs.h. They are defined in lxcbtrfs.c.

Forward declare/put

- struct bdev; /* defined in bdev.h */
- struct bdev_specs; /* defined in lxccontainer.h */
- struct lxc_conf; /* defined conf.h */

as incomplete types in lxcbtrfs.h so that functions declared and defined in
lxcbtrfs.{c,h} have access to it.

Declare

- dir_new_path();

in lxcbtrfs.c. It is defined in lxccontainer.c.

Move definition of struct

- struct rsync_data_char;

from bdev.c to bdev.h because the functions in lxcbtrfs.{c,h} need to access it.

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
src/lxc/bdev/bdev.c
src/lxc/bdev/bdev.h
src/lxc/bdev/lxcbtrfs.c
src/lxc/bdev/lxcbtrfs.h