Skip to content

Commit

Permalink
Split bdev into modules: btrfs
Browse files Browse the repository at this point in the history
Create a module for btrfs: lxcbtrfs.{c,h}.

The functions:

	- get_btrfs_subvol_path()
	- btrfs_list_get_path_rootid()
	- is_btrfs_fs()
	- btrfs_detect()
	- btrfs_mount()
	- btrfs_umount()
	- btrfs_subvolume_create()
	- btrfs_same_fs()
	- btrfs_snapshot()
	- btrfs_snapshot_wrapper()
	- btrfs_clonepaths()
	- btrfs_do_destroy_subvol()
	- get_btrfs_tree_idx()
	- my_btrfs_tree *create_my_btrfs_tree()
	- update_tree_node()
	- add_btrfs_tree_node()
	- free_btrfs_tree()
	- do_remove_btrfs_children()
	- btrfs_recursive_destroy()
	- btrfs_try_remove_subvol()
	- btrfs_destroy()
	- btrfs_create()

and the structs:

	- struct mytree_node
	- struct my_btrfs_tree

move from bdev.{c,h} to lxcbtrfs.{c,h}.

Rename the header file

	- lxc-btrfs.h --> lxcbtrfs.h

Adapt Makefile.am to include lxcbtrfs.{c,h} and remove lxc-btrfs.h.

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
  • Loading branch information
Christian Brauner committed Dec 28, 2015
1 parent 364d54c commit f2e50c4
Show file tree
Hide file tree
Showing 9 changed files with 780 additions and 687 deletions.
9 changes: 6 additions & 3 deletions src/lxc/Makefile.am
Expand Up @@ -7,8 +7,8 @@ noinst_HEADERS = \
arguments.h \
attach.h \
bdev/bdev.h \
bdev/lxc-btrfs.h \
bdev/overlay.h \
bdev/lxcbtrfs.h \
bdev/lxcoverlay.h \
caps.h \
cgroup.h \
conf.h \
Expand Down Expand Up @@ -61,7 +61,10 @@ endif

liblxc_so_SOURCES = \
arguments.c arguments.h \
bdev/bdev.c bdev/bdev.h bdev/overlay.c bdev/overlay.h bdev/lxc-btrfs.h \
bdev/bdev.c bdev/bdev.h \
bdev/lxcbtrfs.c bdev/lxcbtrfs.h \
bdev/lxcoverlay.c bdev/lxcoverlay.h \
bdev/lxcrsync.c bdev/lxcrsync.h \
commands.c commands.h \
start.c start.h \
execute.c \
Expand Down

0 comments on commit f2e50c4

Please sign in to comment.