From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932235AbdC1L2Z (ORCPT ); Tue, 28 Mar 2017 07:28:25 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33965 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932180AbdC1L2X (ORCPT ); Tue, 28 Mar 2017 07:28:23 -0400 Date: Tue, 28 Mar 2017 13:28:18 +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 , Ralph Sennhauser Subject: Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs Message-ID: <20170328132818.05871b73@gmail.com> In-Reply-To: References: <20170328100107.25095af6@gmail.com> <20170328124545.3c4b87ff@gmail.com> Organization: none X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks Ralph