btrfs-progs: corrupt-block: Factor out key parsing function
commit572637b6f95cd9dd7be658ea2d18718d04c4ac17
authorNikolay Borisov <nborisov@suse.com>
Mon, 14 May 2018 11:13:28 +0000 (14 14:13 +0300)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jun 2018 14:37:39 +0000 (7 16:37 +0200)
treee214b91a2d04252844bae568c0279b9cefc611b9
parent04be0e4b19627e9e4d7295d89c58ca08f6a04f9f
btrfs-progs: corrupt-block: Factor out key parsing function

Currently passing a key with -K handling is open coded. I intend on
changing the interface a bit to make the program more usable. To aid
in this factor out common code which parses a triplet of the
"u64,u8,u64" format, corresponding to a btrfs key. No functional
changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
[ print optarg too ]
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-corrupt-block.c