btrfs-progs: fix endian bugs in chunk rebuilding
authorZach Brown <zab@redhat.com>
Wed, 14 Aug 2013 23:16:37 +0000 (16:16 -0700)
committerDavid Sterba <dsterba@suse.cz>
Tue, 3 Sep 2013 17:41:05 +0000 (19:41 +0200)
commit2cd95f945a61c433bd8a2ac6be2909009ae69e20
tree1bc23d6c1451ae2698784b717fbbcd2310a576d6
parent51c5811583536b5c7c7e140aef9312fec28d75f0
btrfs-progs: fix endian bugs in chunk rebuilding

A disk_key was set by hand instead of using the endian helpers.

I *think* the second one is just a typo.  The chunk's num_stripes was
already initialized from the record, but it's le16.  So we'll set the
item's size based on the record's native num_stripes.

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-chunk.c