btrfs-progs: libify some parts of btrfs-progs
authorMark Fasheh <mfasheh@suse.de>
Mon, 7 Jan 2013 22:24:35 +0000 (14:24 -0800)
committerDavid Sterba <dsterba@suse.cz>
Wed, 27 Feb 2013 14:24:25 +0000 (15:24 +0100)
commite5cb128a95eafac47e755cb4b83beb4c6c6af57c
treede4da4767ff057f0f4c914ffa2c3720ed380dc5b
parente7cce77a56bff57144954b8b21fa1e79f00f549e
btrfs-progs: libify some parts of btrfs-progs

External software wanting to use the functionality provided by the btrfs
send ioctl has a hard time doing so without replicating tons of work. Of
particular interest are functions like btrfs_read_and_process_send_stream()
and subvol_uuid_search(). As that functionality requires a bit more than
just send-stream.c and send-utils.c we have to pull in some other parts of
the progs package.

This patch adds code to the Makefile and headers to create a library,
libbtrfs which the btrfs command now links to.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: David Sterba <dsterba@suse.cz>
Makefile
btrfs-list.h
crc32c.h
ctree.h
extent-cache.h
extent_io.h
radix-tree.h
rbtree.h
send-utils.h