Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1141550iol; Sun, 12 Jun 2022 07:15:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwIXPcNWA9d9Zjl7TuFGR95+vJCce5mLYK35gavKh2Hp7Na8Aa4SjEvkyxMQICCqgC8AlR X-Received: by 2002:a17:902:ab90:b0:168:91aa:cfad with SMTP id f16-20020a170902ab9000b0016891aacfadmr24507633plr.50.1655043307519; Sun, 12 Jun 2022 07:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655043307; cv=none; d=google.com; s=arc-20160816; b=qIzuuGzd3ZGAyS91JwrBgbovnyODEG8p86pD1xy+eDEgNV/ebD+eWBelMvULIO3u5O gKCEfWrEQGKqsdVqkUpC+TN0ycEdPq+8EkISnKOlLFLMjoygXvj6MBjQlv/L7axeoTwV 9tKkUFDZN5WEjIOWS1BAkIzfHEGvLSYuck5OyLoQaVrND5wDP4htQ2kLaY1h65W4KhEr JjoqBRs+JBpDjOgf8eyfC51l3bH/nXtk7B3/aGsiU43+6UjbmJ+mXulILB4mv93nHSBP 2HV3znVAC15yLp2lFe6M0ftYa3BialhzzXqw4jZxOuVfvjwGDNo+/jNp/00BfcFM0QTf 6eNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=cGRB5/9TdmCaWo2ULAaV3GohsvQf/eAdguSEeUUybsc=; b=ROHKq9XVinuKwZKe+cSaAud9U+JYmdzpvvjBjAlnICfOnxyKhz+T4pZuB0hv6pxn2m eas7CEPpVvD3BLETLESmPRHYjVXikLstXItkXSQf/DJUZCukFBlaI0VJxyqgAWxT11V5 xRD4LbowKLBu2nQ2bnGkFulWhlVHS//36tAXqT7YewbW4c1i1eWi4ZwGS0k69KcGGZoj YRaf/Sos3npBNlvT9InbymHBHwCnlYpllQ/sp0IWXNApjJY7RO8zs7Eu8+55H8m2iJGD jYdJ/bAgNCwyLYa1HL/tYMoYstUFe8cm1TWPcFrTEWLHUBwU/WbFGL36AHbaN3wNaxts Pm0A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p19-20020a637413000000b003fca85f8c05si5317674pgc.487.2022.06.12.07.14.43; Sun, 12 Jun 2022 07:15:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236214AbiFLKwG (ORCPT + 99 others); Sun, 12 Jun 2022 06:52:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbiFLKwD (ORCPT ); Sun, 12 Jun 2022 06:52:03 -0400 Received: from mail.parknet.co.jp (mail.parknet.co.jp [210.171.160.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 416FC1A812; Sun, 12 Jun 2022 03:52:02 -0700 (PDT) Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id A4E162719CF1; Sun, 12 Jun 2022 19:51:59 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.17.1/8.17.1/Debian-2) with ESMTPS id 25CApvdp038205 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 12 Jun 2022 19:51:59 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.17.1/8.17.1/Debian-2) with ESMTPS id 25CApvBl063742 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 12 Jun 2022 19:51:57 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.17.1/8.17.1/Submit) id 25CApulC063741; Sun, 12 Jun 2022 19:51:56 +0900 From: OGAWA Hirofumi To: Andrew Morton Cc: Javier Martinez Canillas , linux-kernel@vger.kernel.org, Christian Kellner , Alberto Ruiz , Peter Jones , Chung-Chiang Cheng , Carlos Maiolino , Lennart Poettering , Alexander Larsson , Colin Walters , Muhammad Usama Anjum , Shuah Khan , linux-kselftest@vger.kernel.org Subject: Re: [PATCH v6 0/4] fat: add support for the renameat2 RENAME_EXCHANGE flag References: <20220610075721.1182745-1-javierm@redhat.com> Date: Sun, 12 Jun 2022 19:51:56 +0900 In-Reply-To: <20220610075721.1182745-1-javierm@redhat.com> (Javier Martinez Canillas's message of "Fri, 10 Jun 2022 09:57:17 +0200") Message-ID: <874k0qyx0z.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Javier Martinez Canillas writes: > The series adds support for the renameat2 system call RENAME_EXCHANGE flag > (which allows to atomically replace two paths) to the vfat filesystem code. > > There are many use cases for this, but we are particularly interested in > making possible for vfat filesystems to be part of OSTree [0] deployments. > > Currently OSTree relies on symbolic links to make the deployment updates > an atomic transactional operation. But RENAME_EXCHANGE could be used [1] > to achieve a similar level of robustness when using a vfat filesystem. > > Patch #1 is just a preparatory patch to introduce the RENAME_EXCHANGE > support, patch #2 moves some code blocks in vfat_rename() to a set of > helper functions, that can be reused by tvfat_rename_exchange() that's > added by patch #3 and finally patch #4 adds some kselftests to test it. > > This is a v6 that addresses issues pointed out in v5: > > https://lkml.org/lkml/2022/6/9/361 > > [0]: https://github.com/ostreedev/ostree > [1]: https://github.com/ostreedev/ostree/issues/1649 Looks good this patchset. Acked-by: OGAWA Hirofumi Thanks. -- OGAWA Hirofumi