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 06A05C433FE for ; Thu, 6 Oct 2022 08:33:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230347AbiJFIdz (ORCPT ); Thu, 6 Oct 2022 04:33:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231245AbiJFIdm (ORCPT ); Thu, 6 Oct 2022 04:33:42 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14BDC9411C; Thu, 6 Oct 2022 01:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ogIdAYV0BU8EWus85GBp3cFwq4ZzocrCrMeVOE5lBWM=; b=TUGg3whQm37FJ05L4DSFnjJAns RR+fr29Vr9AwrH0dgUR98gNB3JT5YNboOpXzx0ek1KcxGD6LTmXsTFuo0Xlo+6o36R//hJ49vHn0j gJKuI+DnJ3x2UpdVYmEb7vn6ypxMIdev+8RHD44C3zHxi7yIo4/qyVIkC9RIoE5yjScIQ8PWOP1xr jJ4BAsUxrtNo6AvbCwUQX39G0hMERbYad84Gf7/HH4MYDKO11TONDhpBHwnIitdhgHvY7+fDXxqIt wyR05XPCMWM0rjL3UhvJbw8t9RtDgAT2ks69dLeDNPYLLCFQty4U6YYZrsMcW6Lg194NG4FDdqEqB ggEMOmJg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ogMJy-000ips-6T; Thu, 06 Oct 2022 08:33:34 +0000 Date: Thu, 6 Oct 2022 01:33:34 -0700 From: Christoph Hellwig To: Daeho Jeong , "Darrick J. Wong" Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v4 2/2] f2fs: introduce F2FS_IOC_START_ATOMIC_REPLACE Message-ID: References: <20221004171351.3678194-1-daeho43@gmail.com> <20221004171351.3678194-2-daeho43@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221004171351.3678194-2-daeho43@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Tue, Oct 04, 2022 at 10:13:51AM -0700, Daeho Jeong wrote: > From: Daeho Jeong > > introduce a new ioctl to replace the whole content of a file atomically, > which means it induces truncate and content update at the same time. > We can start it with F2FS_IOC_START_ATOMIC_REPLACE and complete it with > F2FS_IOC_COMMIT_ATOMIC_WRITE. Or abort it with > F2FS_IOC_ABORT_ATOMIC_WRITE. It would be great to Cc Darrick and linux-fsdevel as there have been attempts to do this properly at the VFS level instead of a completely undocumented ioctl.