Btrfs-progs: alloc our super copy in btrfs-find-root
authorJosef Bacik <jbacik@fusionio.com>
Tue, 12 Mar 2013 14:07:39 +0000 (10:07 -0400)
committerDavid Sterba <dsterba@suse.cz>
Tue, 12 Mar 2013 15:26:42 +0000 (16:26 +0100)
commit016f6f43543652da2bd26c3d7fd8ed63139e783f
treeb49d6e4825a39b5e592dc058e92d830eaa050f3d
parent2648a11841fef0f91af6bf649d2069d09ea35765
Btrfs-progs: alloc our super copy in btrfs-find-root

Dave fixed the fs_info to allocate the super copy instead of embedding it, but
he failed to notice that I open code open_ctree in btrfs-find-root so we end up
with a super that's not allocated, so we segfault whenever you try to run
btrfs-find-root.  I've fixed this up and now we don't segfault anymore.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
find-root.c