]> git.ipfire.org Git - thirdparty/lxc.git/commit
Split bdev into modules: btrfs
authorChristian Brauner <christian.brauner@mailbox.org>
Thu, 17 Dec 2015 19:14:58 +0000 (20:14 +0100)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 28 Dec 2015 22:35:49 +0000 (14:35 -0800)
commit3c16d0cb4d4d618dd83feefd1ab2854c9550d2cb
treebb0acaa943229be7160d93c3ee903387a864b19b
parent364d54c9f09a770cbaf432cda295923720c74c31
Split bdev into modules: btrfs

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>
src/lxc/Makefile.am
src/lxc/bdev/bdev.c
src/lxc/bdev/bdev.h
src/lxc/bdev/lxcbtrfs.c [new file with mode: 0644]
src/lxc/bdev/lxcbtrfs.h [moved from src/lxc/bdev/lxc-btrfs.h with 78% similarity]
src/lxc/bdev/lxcoverlay.c [moved from src/lxc/bdev/overlay.c with 99% similarity]
src/lxc/bdev/lxcoverlay.h [moved from src/lxc/bdev/overlay.h with 100% similarity]
src/lxc/conf.c
src/lxc/lxccontainer.c