btrfs-progs: separate command and implementation of chunk-recover code
authorDavid Sterba <dsterba@suse.cz>
Tue, 17 Sep 2013 15:21:22 +0000 (17:21 +0200)
committerChris Mason <chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:22:23 +0000 (08:22 -0400)
commite9270f62090c2312bccb340e4394bc216733edac
tree912a6a1f86121b8bb98fe45ea3139b34cc0c6be2
parent6ed613854d104a8f3a70d6eee06bfccf991e23a3
btrfs-progs: separate command and implementation of chunk-recover code

The command has been moved and we should rename the files accordingly,
so the entry point is now in cmds-rescue.c and the core functionality
in it's own file.

Return codes of btrfs_recover_chunk_tree have been simplified not to
require a define and another file for defintion.

CC: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Makefile
chunk-recover.c [new file with mode: 0644]
cmds-rescue.c