Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1218249rwb; Thu, 6 Oct 2022 09:56:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5om+VV+4SYFhfyBbqB7CQNMh+1LoHqJyRvIlIUfkOqzkhk080RFW4c0jpNoZUgMpMErasR X-Received: by 2002:a17:906:9753:b0:787:8e6a:103c with SMTP id o19-20020a170906975300b007878e6a103cmr644193ejy.337.1665075378026; Thu, 06 Oct 2022 09:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665075378; cv=none; d=google.com; s=arc-20160816; b=E0/2RHj5PyRf7HHuUu8oOHSTnnSCi7AELXTQvSI8jiafRqKufA2F4f6AqNJS3ImJF4 FxaXKAzltQu4RCibsOzetjGHlonsc6YHmiA9iDsDp8g1gGBk8krXNLUC9DjX/g/N768e 3f1EfhCs0pGjq5mcrldY83uf8pyqYZlRe3c8mbxlb357WR1H0AZIVa8lO1vbLFVxCKf5 X4ClQOyjhS7Qv/YwW1dXRGogzR/fZFWyBKewB4ef5E88ROeVWtNTvq/yUa3zU9YfM4b3 S2/8CQfScNg4Ap1P2RfR/7SDDwss59BCmDITZzxxPoziFNR6D23HvPRV7DrSryK/uBM2 rsdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Rd0bn9Wn97LoCejb6snsOZhRxUIBDfA6aXrBq23w6cg=; b=JJA7Lh142oYYzjSmT3iRZHWovplYTvDVsDGt4qzGjEY6e5RzXG7JxCZNnEitU7+kab KDfAm9e0ippqIf/lyDhOblm0/ZXSdAgUd93X9F1kdIHKgfLYwyK7iCnsHk70j9mQGXzc Ge0H02BtlyyeP3/T6gkMkTCi9bgUaCYWf8JWQZf6r9LtPPD0Dn16KEsAiU6aDsxz9MJA m6qR/CbKFVKXOauBbjQsAk4xqieQGU4HW3/uU3ZdbaB1+m6Fx42hfPeSXiXCgtt9bjzm bELz0SG4xpBKCjy4MmEr99CE6sGP3k5ogd6TCFEWY2rzFLREvvmJi8gXNDZjLBjU7sXD Ow9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BfWleTUh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p24-20020a170906499800b007781bc042a2si14505709eju.646.2022.10.06.09.55.52; Thu, 06 Oct 2022 09:56:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BfWleTUh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230379AbiJFQcl (ORCPT + 99 others); Thu, 6 Oct 2022 12:32:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbiJFQcj (ORCPT ); Thu, 6 Oct 2022 12:32:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D172B3B1A; Thu, 6 Oct 2022 09:32:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 948C361A22; Thu, 6 Oct 2022 16:32:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECF77C433D6; Thu, 6 Oct 2022 16:32:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665073958; bh=EpiLhU9Vopf2fm0LDuMXBE1GSbO3K9x1KfL5hJfKdU0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BfWleTUhRNqsI+maojBT7rGzIWgqvXoBiV0VQVtNdYcAwLRLn3oSWOlWEokzJwW9E oBChMo9X78YlxVggVl19ZnLJPpMrFCvpYDdYt64FWpe2ON7JmQUcWtD/avdUgySgm/ dbNpGVE2oOEdXvir0obKPKdFsxNRDKP1G0vg0LtXT/fvzEeo0fXvves6BZsJxLLK/h +2anJgh1iHcX+D0vZ2pqy+ae58mtEqUr1bAensM/YvIkoE3ifuoj4C6TXJYkZm31Fk SZJX80WXRMIxoYkNMIaagConJqkM70l/K4uj9BB8vk50Oh77cJ1XRbW2IwYTc7NhR8 GwncyKKF7SAxg== Date: Thu, 6 Oct 2022 09:32:37 -0700 From: "Darrick J. Wong" To: Christoph Hellwig Cc: Daeho Jeong , 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: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 06, 2022 at 01:33:34AM -0700, Christoph Hellwig wrote: > 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. It's been a while since I sent the last RFC, but yes, it's still in my queue as part of the xfs online fsck patchserieses. https://lore.kernel.org/linux-fsdevel/161723932606.3149451.12366114306150243052.stgit@magnolia/ More recent git branch: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/log/?h=atomic-file-updates --D