btrfs-progs: report I/O errors when closing the filesystem
authorOmar Sandoval <osandov@fb.com>
Fri, 3 Mar 2017 17:02:14 +0000 (09:02 -0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Mar 2017 12:36:49 +0000 (13:36 +0100)
commit7fbb89d167ec2d8f3e7c0b46285778c1c481a742
tree48ac1371e3860b2c70bfd09ace167f3e61030672
parent839de9c033f3f6ecda2f61fcbcd1dfafc0e68125
btrfs-progs: report I/O errors when closing the filesystem

If the final fsync() on the Btrfs device fails, we just swallow the
error and don't alert the user in any way. This was uncovered by xfstest
generic/405, which checks that mkfs fails when it encounters EIO.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
disk-io.c
volumes.c