btrfs-progs: mkfs: move image creation of rootdir to its own files
authorQu Wenruo <wqu@suse.com>
Thu, 19 Oct 2017 05:41:37 +0000 (13:41 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Jan 2018 17:11:24 +0000 (18:11 +0100)
commit075580471e0f7435c52df486eb4354031337a7d3
treec0fb97c0a724f5dc1c7dd09f23da637a6608a46b
parent4de1e5cd4902d588ef673f17e6ba5130aab62bf7
btrfs-progs: mkfs: move image creation of rootdir to its own files

In fact, --rootdir option is getting more and more independent from
normal mkfs code.

So move image creation function, make_image() and its related code to
mkfs/rootdir.[ch], and rename the function to btrfs_mkfs_fill_dir().

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Makefile
mkfs/main.c
mkfs/rootdir.c [new file with mode: 0644]
mkfs/rootdir.h [new file with mode: 0644]