Re: [PATCH v2] btrfs-progs: report I/O errors when closing the filesystem

2017-03-08 Thread David Sterba
On Mon, Mar 06, 2017 at 08:42:01AM +0800, Qu Wenruo wrote: > > > At 03/04/2017 01:02 AM, Omar Sandoval wrote: > > From: Omar Sandoval > > > > 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 > > gener

Re: [PATCH v2] btrfs-progs: report I/O errors when closing the filesystem

2017-03-05 Thread Qu Wenruo
At 03/04/2017 01:02 AM, Omar Sandoval wrote: From: Omar Sandoval 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

[PATCH v2] btrfs-progs: report I/O errors when closing the filesystem

2017-03-03 Thread Omar Sandoval
From: Omar Sandoval 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 --- Changes from v1: return -errno inst