Btrfs-progs: add missing write check for mkfs
authorFilipe David Borba Manana <fdmanana@gmail.com>
Wed, 3 Jul 2013 17:30:41 +0000 (18:30 +0100)
committerDavid Sterba <dsterba@suse.cz>
Fri, 9 Aug 2013 12:32:33 +0000 (14:32 +0200)
commit80bab0f18c8a9ed76a392ae5bfafc8b038bb41b9
tree9e835aed29620c656cb7142fe191b2220c5f0095
parent705e76ee8ddb2fd3d8127464b0c482b9fe43ef3e
Btrfs-progs: add missing write check for mkfs

Assert that the writes of the device and chunk tree
roots succeed. This verification is currently done
for all other tree roots, however it was missing for
those 2 trees.

Would these tree root writes fail, but all others succeed,
it would lead to a corrupted/incomplete btrfs filesystem,
or, more likely some weird failure later on in mkfs.btrfs
inside open_ctree().

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
utils.c