From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2906ECAAA1 for ; Tue, 6 Sep 2022 05:29:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232036AbiIFF3p (ORCPT ); Tue, 6 Sep 2022 01:29:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbiIFF3l (ORCPT ); Tue, 6 Sep 2022 01:29:41 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AC71EE29 for ; Mon, 5 Sep 2022 22:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=mXPK6jY7DovOBIiV8RL06xxHnGdeIYXsf2+lRkMW5uc=; b=pkV+wB3KkuaIVtjMmnnVe3mk4z jFdVnyUluMp6bxD5+lUhbK9qT0Ow0v4cC0e9FMQPv7JG4ktjrFN2S0dV6iNvsYOdpu21cVZSbIfJJ ke4pEJdIX0AfLoCKNQWF1hohdQXWjUiX60oAWBVNcipJSC6J3UJPxVGOd1+VuwYalpWkEfpK7Dxns jo5RzSaChqEiezPKP3Qjbm9svnI1epZOudU91eYIDQETlw5Be2G9gpmaz1Fsw/zyuagkifmxleTQR zrxI7Fmlu1lgJ/uny/v+h5aZfoQk7iYFWFSYC7jWcxYgG1HaIM5RZ3pHYLS8Y0v5zGfbICE9gwGfm cXbvPHTA==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.95 #2 (Red Hat Linux)) id 1oVR9M-00CaP3-Fa; Tue, 06 Sep 2022 05:29:28 +0000 Date: Tue, 6 Sep 2022 06:29:28 +0100 From: Al Viro To: Amir Goldstein Cc: Miklos Szeredi , Yu-li Lin , chirantan@chromium.org, dgreid@chromium.org, fuse-devel , linux-fsdevel , suleiman@chromium.org Subject: Re: [PATCH 2/2] fuse: Implement O_TMPFILE support Message-ID: References: <20220831025704.240962-1-yulilin@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Tue, Sep 06, 2022 at 07:58:50AM +0300, Amir Goldstein wrote: > On Mon, Sep 5, 2022 at 7:25 PM Miklos Szeredi wrote: > > > > On Wed, Aug 31, 2022 at 02:30:40PM -0700, Yu-li Lin wrote: > > > Thanks for the reference. IIUC, the consensus is to make it atomic, > > > although there's no agreement on how it should be done. Does that mean > > > we should hold off on > > > this patch until atomic temp files are figured out higher in the stack > > > or do you have thoughts on how the fuse uapi should look like prior to > > > the vfs/refactoring decision? > > > > Here's a patch refactoring the tmpfile kapi to return an open file instead of a > > dentry. > > > > Comments? > > IDGI. Why did you need to place do_dentry_open() in all the implementations > and not inside vfs_tmpfile_new()? > Am I missing something? The whole point of that horror is to have open done inside ->tmpfile() instances... Al, very unhappy with proposed interface ;-/