btrfs-progs: fix extent key endian bug in repair
authorZach Brown <zab@redhat.com>
Wed, 14 Aug 2013 23:16:38 +0000 (16:16 -0700)
committerDavid Sterba <dsterba@suse.cz>
Tue, 3 Sep 2013 17:41:06 +0000 (19:41 +0200)
commit47c072c2d85a786c5290e0bc5d2e3110bc806ca1
tree6e9573ed1fe0da7ba9eecc0dba656958c75acfee
parent2cd95f945a61c433bd8a2ac6be2909009ae69e20
btrfs-progs: fix extent key endian bug in repair

Extents rebuilt from backrefs can have their objectid mangled.  The code
tried to build a disk_key by hand and got the swabbing backwards.

Signed-off-by: Zach Brown <zab@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cmds-check.c