common/btrfs: add helper to detect dump-super or btrfs-show-super
authorDavid Sterba <dsterba@suse.com>
Mon, 16 Jan 2017 15:35:12 +0000 (16:35 +0100)
committerEryu Guan <eguan@redhat.com>
Tue, 17 Jan 2017 03:59:59 +0000 (11:59 +0800)
commitacb8acd2367ac8b9d3f9a471b9bd18e0e6d83eda
treebdacdd31b6d60aa87f17211146361ec9fcc05523
parent91e16aa7c502654232fadd2d591c638161852403
common/btrfs: add helper to detect dump-super or btrfs-show-super

The command btrfs-show-super is not supposed to be distributed but
was useful for testing. The same functionality is now present as
'btrfs inspect-internal dump-super', let's detect which one is
available and use it in btrfs/011 that fails with btrfs-progs 4.8.4+

Signed-off-by: David Sterba <dsterba@suse.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/btrfs
tests/btrfs/011