From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from imap.thunk.org ([74.207.234.97]:57788 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753138AbeDSBI2 (ORCPT ); Wed, 18 Apr 2018 21:08:28 -0400 Date: Wed, 18 Apr 2018 21:08:19 -0400 From: "Theodore Y. Ts'o" To: Matthew Wilcox Cc: Dave Chinner , Jeff Layton , lsf-pc , Andres Freund , Andreas Dilger , Ext4 Developers List , Linux FS Devel , "Joshua D. Drake" Subject: Re: fsync() errors is unsafe and risks data loss Message-ID: <20180419010819.GD23194@thunk.org> References: <1523531354.4532.21.camel@redhat.com> <20180412120122.GE23861@dastard> <1523545730.4532.82.camel@redhat.com> <20180412224404.GA5572@dastard> <1523625536.4847.21.camel@redhat.com> <20180413140232.GA24379@bombadil.infradead.org> <20180414014752.GG23861@dastard> <20180414023814.GB997@bombadil.infradead.org> <20180419001343.GF27893@dastard> <20180419004037.GB16782@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180419004037.GB16782@bombadil.infradead.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Apr 18, 2018 at 05:40:37PM -0700, Matthew Wilcox wrote: > > I've been thinking about this. Ideally we want to pass some kind of > notification all the way up to the desktop and tell the user to plug the > damn stick back in. Then have the USB stick become the same blockdev > that it used to be, and complete the writeback. We are so far from > being able to do that right now that it's not even funny.o Maybe we shouldn't be trying to do any of this in the kernel, or at least as little as possible in the kernel? Perhaps it would be better to do most of this as a device mapper hack; I suspect we'll need userspace help to igure out whether the user has plugged the same USB stick in, or a different USB stick, anyway. - Ted