Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1950420ybt; Thu, 2 Jul 2020 19:05:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxso1Z6C+0E5ppgWlc4uA6dGcBDSFVOuikoTPebw62YG4KW6dZ1Se0Rw30OgdwRLV6jIfBV X-Received: by 2002:a17:906:c415:: with SMTP id u21mr29732365ejz.45.1593741949365; Thu, 02 Jul 2020 19:05:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593741949; cv=none; d=google.com; s=arc-20160816; b=Rd16hgQPs2v1Ag/2Frc2+mta68n6TJmNCWKDJy3K2p8m+qCZyeD2V4qRM1U0t8eJHs PGQNEEiQpJh029kd/DCnKVP4guGL2apapYvIkZod7N1VmX7Vo0kFfkz1RzNAsfzMHvAm jUDumSmChrr498fXV14/x9yIpiyAnZq3Ma8F5VCpCQtj5exSipoFyHDMyey+AhPglS/0 LWQsdZ6yLNZhx2r0EWYOY1vxEqljnKc22VAPW64oI41tStTGR8DqfuRsIJ+nGDmnhTVI VzGCS8R1UJy8kN6GHCrIUjRQ1A/n3lyX/WdrMLim06GqdgN/c0gKDWCjIFIltDqktVxl cVMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Qrt6ktu9VsCsUj9oWxHlekCG8cnAkfnNL7LRjxGez8g=; b=FvFlhqkTjJdN0/BthBUeiWS8kqhiBgQhTb3131cUgO0G6KbYXjTovOAkWiKQortdtq XNj66oDyhRMci5eOsUt7VNIdNpXOg4MsveV2gDZjGvDB4aW46kOmAFsc7DBN2sC6obOl KKcbGcqL6JdU27cMU2ndwNVDH11rlGQRJc8RyKUrcXslqtv/b+iSOOvQZxBZ9WWV831l fxGuLkutQnytKnQQqbnOnOMLiivx3Pz+iH3dBSy2CFn3qYmT3cIgyf+RaP7bORv/zMcW ENaBG/sOpH3Pdu33FGV5h+YdSwsul3RH47444fuX0eIXl6bVbm1+yJYQA1xG65npiyUO TWpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n24si7007654ejx.544.2020.07.02.19.05.26; Thu, 02 Jul 2020 19:05:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726081AbgGCCC3 (ORCPT + 99 others); Thu, 2 Jul 2020 22:02:29 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:58862 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726032AbgGCCC2 (ORCPT ); Thu, 2 Jul 2020 22:02:28 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id BA02E231593B7C3B0C58; Fri, 3 Jul 2020 10:02:26 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.204) with Microsoft SMTP Server (TLS) id 14.3.487.0; Fri, 3 Jul 2020 10:02:26 +0800 Subject: Re: [f2fs-dev] [PATCH] f2fs: add symbolic link to kobject in sysfs To: Daeho Jeong CC: , , , Daeho Jeong References: <20200630005625.2405062-1-daeho43@gmail.com> <961072bb-4c8f-b01e-666d-1f5e35a8b76d@huawei.com> <9d1afacc-6033-2bae-d55d-909d50f1904b@huawei.com> From: Chao Yu Message-ID: Date: Fri, 3 Jul 2020 10:02:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/7/1 20:12, Daeho Jeong wrote: >> On 2020/7/1 15:04, Daeho Jeong wrote: >>> Actually, I want to keep the mount number remaining to the same >>> number, even if it's re-mounted. >> >> Then once there is f2fs umounter, the order will be incorrect... > > Actually, we prepared this patch for a strictly controlled system like > Android to easily access the sysfs node for a specific partition like > userdata partition using a specific number. I'm not against Android defined interfaces, just be confused about the behavior that does not fully documented (at least, we should add this into f2fs doc, and specify this is android specified interface), something like once one mount point was umounted, that sequential number @x in 'mount_@x" could be reused by later newly mounted point, it breaks the description: "in the order of mounting filesystem". > In this system, we don't worry about another unexpected f2fs umounter > interfering in between unmounting and mounting a partition. > > When we are under the condition that we can keep track of how many > times the userdata partition has been re-mounted, we might as well use > the original partition name like "/sys/fs/f2fs/dm-9". > This is for when we couldn't do that. > . >