From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1csq3M-0001c7-Gw for linux-mtd@lists.infradead.org; Tue, 28 Mar 2017 12:16:50 +0000 Received: by mail-wr0-x242.google.com with SMTP id p52so19217379wrc.2 for ; Tue, 28 Mar 2017 05:16:25 -0700 (PDT) Date: Tue, 28 Mar 2017 14:16:21 +0200 From: Ralph Sennhauser To: Amir Goldstein Cc: Miklos Szeredi , linux-unionfs@vger.kernel.org, linux-kernel , linux-mtd@lists.infradead.org, regressions@leemhuis.info, Richard Weinberger , Artem Bityutskiy , Adrian Hunter Subject: Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs Message-ID: <20170328141621.6bb2d639@gmail.com> In-Reply-To: References: <20170328100107.25095af6@gmail.com> <20170328124545.3c4b87ff@gmail.com> <20170328132818.05871b73@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 28 Mar 2017 08:08:51 -0400 Amir Goldstein wrote: > On Tue, Mar 28, 2017 at 7:28 AM, Ralph Sennhauser > wrote: > > Hi Amir, > > > > On Tue, 28 Mar 2017 07:03:11 -0400 > > Amir Goldstein wrote: > > > >> Overlayfs now uses O_TMPFILE for copy up and it works fine with all > >> the file systems I tested (tmpfs, xfs, ext4). > >> If I am right and O_TMPFILE is broken in ubifs, you are most likely > >> the first person to test it (indirectly by overlayfs). > >> > >> Please try to reproduce the bug with following patch to disable > >> ubifs O_TMPFILE support: > >> > >> --- a/fs/ubifs/dir.c > >> +++ b/fs/ubifs/dir.c > >> @@ -1685,7 +1685,7 @@ const struct inode_operations > >> ubifs_dir_inode_operations = { > >> #ifdef CONFIG_UBIFS_ATIME_SUPPORT > >> .update_time = ubifs_update_time, > >> #endif > >> - .tmpfile = ubifs_tmpfile, > >> + //.tmpfile = ubifs_tmpfile, > >> }; > > > > Get a unused warning during build but all seems to be working fine > > now. > > OK. I'll wait for ubifs developers to fix the bug. > Otherwise, I'll send a proper patch to disable ubifs O_TMPFILE > support. Will add tested-by you. Sounds like a good plan, there is still time for 4.11-rc5. Fine with you adding my tested-by in case it will come to this. Appreciated Ralph > > Thanks!