btrfs-progs: find-root: Output matched root when searching all roots
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 25 Aug 2015 02:44:56 +0000 (10:44 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 31 Aug 2015 17:25:13 +0000 (19:25 +0200)
commit3eb8836424fd363fd7b4dda5cc602ed0040c3f8a
tree2a1f0d915321837882585ab4ff2871776b74ed12
parent96fbc6a146ba2b7356112d99ede54cf362797990
btrfs-progs: find-root: Output matched root when searching all roots

[Bug]
When given '-a' option, btrfs-find-root will output all possible tree
roots but the exact matched one.

[Reason]
Result printing skipes the exact match one, as it will normally be shown
before the alternative ones.
But when '-a' is given, that's not the case.

[Fix]
Just show the exact match one for search all case.

Reported-by: Marc Merlin <marc@merlins.org>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-find-root.c