libbtrfsutil: add qgroup inheritance helpers
authorOmar Sandoval <osandov@fb.com>
Thu, 18 Jan 2018 21:09:32 +0000 (13:09 -0800)
committerDavid Sterba <dsterba@suse.com>
Sat, 24 Feb 2018 00:37:17 +0000 (01:37 +0100)
commitbad4208da33f3ef2adf9af2b06a597f2ce23d228
tree691e65ddd839a3cb80fb79f288a4eb55b896f007
parent23c01b3c1b0803950657f3f29914cd59f3554a84
libbtrfsutil: add qgroup inheritance helpers

We want to hide struct btrfs_qgroup_inherit from the user because that
comes from the Btrfs UAPI headers. Instead, wrap it in a struct
btrfs_util_qgroup_inherit and provide helpers to manipulate it. This
will be used for subvolume and snapshot creation.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Makefile
libbtrfsutil/btrfsutil.h
libbtrfsutil/python/btrfsutilpy.h
libbtrfsutil/python/module.c
libbtrfsutil/python/qgroup.c [new file with mode: 0644]
libbtrfsutil/python/setup.py
libbtrfsutil/python/tests/test_qgroup.py [new file with mode: 0644]
libbtrfsutil/qgroup.c [new file with mode: 0644]