btrfs-progs: chunk-recovery: Fix a float point error
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Thu, 19 Nov 2015 06:42:39 +0000 (14:42 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 19 Nov 2015 17:34:30 +0000 (18:34 +0100)
commita99d13dccee11d29da3d045c2c2fc69d47eff770
tree88ed49e670647477b8c8c90856638fa062628df7
parentb7a69afe6947d913fed4ad64eca6471c6059a1ec
btrfs-progs: chunk-recovery: Fix a float point error

Fix a zero division causing chunk-recovery fail.

Also fix a typo "strpie_length" -> "stripe_length".

Reported-by: Scotty Edmonds <scotty@scottyedmonds.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
btrfsck.h
chunk-recover.c