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 E26DDCCA47B for ; Wed, 8 Jun 2022 08:40:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231539AbiFHIkD (ORCPT ); Wed, 8 Jun 2022 04:40:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231316AbiFHIjA (ORCPT ); Wed, 8 Jun 2022 04:39:00 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4D576B041B for ; Wed, 8 Jun 2022 00:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654675010; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2k+jKIfHZoA1h8TQDCXVxq0+BaAqWOwfnPdkWgL4PK4=; b=JdwHHsQvNhuTwvGBKaTEhdrxmRGHkwjPw8BRcNjnQT39If0aqTEglNne7xRQNFW7YYjXS+ AdBCJfBdIDHDJ8I5Mp9e+KeJeO/trFhyGS/ItW6ffQL5lXiFuvbYs0YoKXisY88LozmMip u8fHCNlXze2aQwVyPuFRdIbqpLTEcnA= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-189-0GswUPTIM-WG7Svby4JUAA-1; Wed, 08 Jun 2022 03:56:49 -0400 X-MC-Unique: 0GswUPTIM-WG7Svby4JUAA-1 Received: by mail-wm1-f70.google.com with SMTP id ay28-20020a05600c1e1c00b0039c5cbe76c1so1655936wmb.1 for ; Wed, 08 Jun 2022 00:56:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=2k+jKIfHZoA1h8TQDCXVxq0+BaAqWOwfnPdkWgL4PK4=; b=MQ9raD3ogpKNEtmpcDmcwYQtDqbmdOepaxEhlfpap8elB8q/PyFQFTshujuU8ZAyAu Gtc/HT5IjhADO5MTkWylX/XEfU6aiwCL6pQ/HAJyo/9Uo91x0rNHKJM2zC2HjLhN3MKr wq8REYZGEbngUxOfxs0kJXJeEiNxP+UbjNyeR4A+rstMvtmm7V5/sJCPvpT5Ztq0rjFd iOJpjLsDy0ttz+j8n4qcTU+l/Ii6xMUtHrknsCat63gaVRfwlXGvdTMnYizIO+9PqYjM fpRHPMez85lv8e92p1Jmvk4H9WM/fW5siHDzLB1tk4qk5K7Ws/rSKIEJIzqixJlNeebP HmmQ== X-Gm-Message-State: AOAM5327fCkVyLbiV9CvUX3ifoYk6BxoYCRnJzsneHJ+z3cl6Acpq5Kz E1EHe403YRcaVL1ceD388Kg0aCyOc680stEKCRAiqYnoREqQmYMWnm9hfNmcOxi8xr5IAWHQDEX XY3MKwRcCyhZ2O8cKLAkrT3+wkykN X-Received: by 2002:a7b:c456:0:b0:39c:5d1e:661d with SMTP id l22-20020a7bc456000000b0039c5d1e661dmr5660318wmi.15.1654675007749; Wed, 08 Jun 2022 00:56:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGvvkN3Uxl/AE0OJUIVBs5rdbg2Ex7lGchsJScH3UTWwhM20U3V484mKeSchgYaohBskDAdw== X-Received: by 2002:a7b:c456:0:b0:39c:5d1e:661d with SMTP id l22-20020a7bc456000000b0039c5d1e661dmr5660295wmi.15.1654675007509; Wed, 08 Jun 2022 00:56:47 -0700 (PDT) Received: from [192.168.1.129] (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id o10-20020adfeaca000000b0020c5253d8c2sm20003671wrn.14.2022.06.08.00.56.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Jun 2022 00:56:47 -0700 (PDT) Message-ID: <05bfb010-6b00-edb1-0e28-889a2ff71503@redhat.com> Date: Wed, 8 Jun 2022 09:56:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v4 0/4] fat: add support for the renameat2 RENAME_EXCHANGE flag Content-Language: en-US To: OGAWA Hirofumi Cc: Lennart Poettering , linux-kernel@vger.kernel.org, Colin Walters , Peter Jones , Alberto Ruiz , Christian Kellner , Chung-Chiang Cheng , Muhammad Usama Anjum , Alexander Larsson , Shuah Khan , linux-kselftest@vger.kernel.org References: <20220601173204.1372569-1-javierm@redhat.com> From: Javier Martinez Canillas In-Reply-To: <20220601173204.1372569-1-javierm@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Hello OGAWA, On 6/1/22 19:32, Javier Martinez Canillas wrote: > Hello, > > 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. > I think that addressed all the issues you pointed out in v3, please let me know if there's anything else that is needed for this patch series. Would these be merged by you or should I ping someone else? I'm not that familiar with how filesystem patches make into the mainline tree. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat