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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C62EC433EF for ; Fri, 12 Nov 2021 10:10:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EE9A561027 for ; Fri, 12 Nov 2021 10:10:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234886AbhKLKNh (ORCPT ); Fri, 12 Nov 2021 05:13:37 -0500 Received: from mail-eopbgr1320088.outbound.protection.outlook.com ([40.107.132.88]:61312 "EHLO APC01-PU1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234800AbhKLKNf (ORCPT ); Fri, 12 Nov 2021 05:13:35 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LkvHykgLUjZZ9pBy2grP/aBXRz2nBABTnjv3/aFjFAKKAbC/zZ9x1/XFtEm86nqnvM5o8nxRJ2wOXCmriB8P/dEo4kI04loYuGufDkEnAhFwVG8DybvJXjEK+lG+buCXwnpBTRgNFpFLSyywjWA7aZf4ludTwaYdcvQwXqEfZX5SSUHcD0dLW7YBEmur+OzG0iNP7Wuuv/IDXI7PVfT/jSUz2Z8qm9mR0mxth/pDkiZ5gjexrhOmsuRlkwIdlReTSVqxUtuv5BKNoFH8xuj62vRCRJYh3Ek8+fOKSObtJJzLw/ct2wA9KZFAIejdJ+RVKWr3d4QZjVKgrTI67vTdEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LnWlPS2x8jzSiUjoXpFNj9zHJyFfCvebYP7sK9XAY90=; b=IRUiUYzZLfe9hxUVWoZtqZ/H+L6nHlKJ3VCGIb2nyFRKQG26myWmA4sdHMMdMbjT2OL7ZGZ39Km1x2Hh3wQVHgNnicvv8Vw2jqhSlnY0SxnbH8rJBcEbpcbzlUik9z05eEEEdFyDW2O52WYEghNfUM1sFL9aNh8h5/mdKu1VpO1l5SWkJJDb5dfC8YIySCB/pJ0iaeral6ezhY3cJx+xVNPlH+VvU0Z1Ase6rxovSxD1DzCEEIIsFaKQ1rkAOJKAMfpfsUnatDC1VKUOYRbfDMBEhJjydEDtzp27hKv8Nm+90cIyp92zn3brD2leqKBK9P0vkZ6spk+p+ENmVWjoYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oppo.com; dmarc=pass action=none header.from=oppo.com; dkim=pass header.d=oppo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oppo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LnWlPS2x8jzSiUjoXpFNj9zHJyFfCvebYP7sK9XAY90=; b=e7QhjFgk1l3WqedX8J1XUZ+mQQ3JujK7DMYi0ZM6ooxJmMB+l+DOBEqJhGXpWyzgq4Bgthx3oCWn8gij3xN43K/YbV+qLijASVd0TthHRnWYAYzXFBZlIdC8meVmKNNnlmDrp6LjUboyZrVJibYoIVojlQwj6WhOBEJLU1CzNjE= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=oppo.com; Received: from SG2PR02MB4108.apcprd02.prod.outlook.com (2603:1096:4:96::19) by SG2PR02MB4022.apcprd02.prod.outlook.com (2603:1096:4:83::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11; Fri, 12 Nov 2021 10:10:41 +0000 Received: from SG2PR02MB4108.apcprd02.prod.outlook.com ([fe80::7e:59ef:bec3:9988]) by SG2PR02MB4108.apcprd02.prod.outlook.com ([fe80::7e:59ef:bec3:9988%7]) with mapi id 15.20.4669.016; Fri, 12 Nov 2021 10:10:40 +0000 Subject: Re: [PATCH v5 1/2] erofs: add sysfs interface To: Gao Xiang Cc: linux-erofs@lists.ozlabs.org, xiang@kernel.org, chao@kernel.org, guoweichao@oppo.com, guanyuwei@oppo.com, yh@oppo.com, zhangshiming@oppo.com, linux-kernel@vger.kernel.org References: <20211112023003.10712-1-huangjianan@oppo.com> From: Huang Jianan Message-ID: <67b86422-3133-ff7b-ddb7-c25939bee549@oppo.com> Date: Fri, 12 Nov 2021 18:10:37 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: HK2P15301CA0016.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::26) To SG2PR02MB4108.apcprd02.prod.outlook.com (2603:1096:4:96::19) MIME-Version: 1.0 Received: from [10.118.7.229] (58.255.79.105) by HK2P15301CA0016.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.0 via Frontend Transport; Fri, 12 Nov 2021 10:10:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1fa0eff1-e8ab-4167-d236-08d9a5c4adec X-MS-TrafficTypeDiagnostic: SG2PR02MB4022: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1728; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TWVCeeB2zD58Pfo7qZEnp1unfOQ/jDgVz7hiAX6Y2W3H/S+J5/+FZDN+3u+CVP+7SpyperTqsYfoB3zR/wJcuPWXa6DLuUzityBVy7UefcUFfwbfqvGV1gJYbVRzHjRlxWKa328mPK5wVedLVRxhJjxFKneEB89DZeU92pFZSyE5MbV7SC2QBxi7+pCMrqD6nAPEvkIXI/yvQo5pF+sUSnf0T2njAvI6juSN8S77Z8LN4NTU09oPPxZa0xEFJmCb2qlSPmJjUH3feO4bx6cZiHXdU72OOxGtj5qLkkPMETr+MYv8t9EkdlCd6b/jB4sToG6i1/slGfhm4RbPWKKayuvnN2WzgRgFAETYkFxjZpTe/ZonOjRopzHM854hk5knvgR+VNikPm6KhzbXNkEqvdkQapj9ZF7WnlBE3Cf3mofKbiGCXoilxHA6GOV3vpx2owZWo5+AagmI9K+m+nLYkZ1/kmRviHQcUOyOJJSlUxIomz4AG9wgQiFE3rCQXtjKTROvke2fY5ivz1iD4d5AQkWVxAdGzsUG1aky+pNlK3dJkfql1O/vuZHV3qB19wVW5Nurova8CH+tuoDdlJUahPyszi8hoaVrsk/16SnQ/I10/Fu06lGrir39n7Y8vfoRggWnO4nAPt/L/zmQzxXuEkBUGLjg9OigDWh09lCwb6NSBNBp7eShyq95eA3oLlg4MvKhs1gaVd8Az1nt/JIWViuO5TW+KE74NsjSKuyGGXFsQO5EH6DysMYmcNpcht7xOVmqIA2fMkfUMQkg9yWLkj9siow6yiZEoVzh57mgIys= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR02MB4108.apcprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(956004)(2616005)(26005)(6916009)(16576012)(8936002)(31696002)(316002)(4326008)(66476007)(6486002)(66946007)(66556008)(86362001)(31686004)(2906002)(36756003)(52116002)(508600001)(186003)(8676002)(83380400001)(38100700002)(38350700002)(5660300002)(11606007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-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iRXlVWGJKNHprdWswWnBRc0pERGdnV0w1N3ZkVFJ5S2tGbFZxckxE?= =?utf-8?B?aHRLWGpCU1cwYUI5K2wwRkxwQUF6cG1raTJZQlYxOHU2SlhnSFJlYXBpeHlR?= =?utf-8?B?QlVtZFBEZk9zV1NIMHpRYUFscmlOQTQ0RmNMalNUQkU5NkY0b1hyNjdzbDZD?= =?utf-8?B?Y0xQM0EwNGtuTDhwSFpLQ1JnZ1FCRENsV21Dc3Y0QnZOWDZ6T1VBa2M3bDNV?= =?utf-8?B?OVo5ODhFaDlRNDczREtTbHFHQk9CYVFlMVBLOUlFUXZRWWNERjFzQlVkMk1I?= =?utf-8?B?b0NCbkxvUE9kMXBuakJzRlJFbzlVeURRcDQ4NDRSdGdycFA4YmdEMHdwUXMx?= =?utf-8?B?V0ZVQ0Y1K0lvZ0ZjRWVIRnc3b3ZURkZTeVR4N1dmWE5xREprNS9tNWlINGNk?= =?utf-8?Q?uNlKE5LISG+9fI7AMRnEfww=3D?= X-OriginatorOrg: oppo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1fa0eff1-e8ab-4167-d236-08d9a5c4adec X-MS-Exchange-CrossTenant-AuthSource: SG2PR02MB4108.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Nov 2021 10:10:40.6653 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f1905eb1-c353-41c5-9516-62b4a54b5ee6 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Gs3L569+0VzcfetWi0Rp6HKZLhz+bSuUJwok/O0csiOMoBYGqZPkfOqYJwcVHGUSMXOEgNmUrrJefN8NEdI88w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR02MB4022 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/11/12 13:36, Gao Xiang 写道: > Hi Jianan, > > On Fri, Nov 12, 2021 at 10:30:02AM +0800, Huang Jianan wrote: >> Add sysfs interface to configure erofs related parameters later. >> >> Signed-off-by: Huang Jianan >> Reviewed-by: Chao Yu >> --- >> since v4: >> - Resend in a clean chain. >> >> since v3: >> - Add description of sysfs in erofs documentation. >> >> since v2: >> - Check whether t in erofs_attr_store is illegal. >> - Print raw value for bool entry. >> >> since v1: >> - Add sysfs API documentation. >> - Use sysfs_emit over snprintf. >> >> Documentation/ABI/testing/sysfs-fs-erofs | 7 + >> Documentation/filesystems/erofs.rst | 8 + >> fs/erofs/Makefile | 2 +- >> fs/erofs/internal.h | 10 + >> fs/erofs/super.c | 12 ++ >> fs/erofs/sysfs.c | 240 +++++++++++++++++++++++ >> 6 files changed, 278 insertions(+), 1 deletion(-) >> create mode 100644 Documentation/ABI/testing/sysfs-fs-erofs >> create mode 100644 fs/erofs/sysfs.c >> >> diff --git a/Documentation/ABI/testing/sysfs-fs-erofs b/Documentation/ABI/testing/sysfs-fs-erofs >> new file mode 100644 >> index 000000000000..86d0d0234473 >> --- /dev/null >> +++ b/Documentation/ABI/testing/sysfs-fs-erofs >> @@ -0,0 +1,7 @@ >> +What: /sys/fs/erofs/features/ >> +Date: November 2021 >> +Contact: "Huang Jianan" >> +Description: Shows all enabled kernel features. >> + Supported features: >> + lz4_0padding, compr_cfgs, big_pcluster, device_table, >> + sb_chksum. > Please help submit a patch renaming lz4_0padding to 0padding globally > since LZMA and later algorithms also need that... > > Also, lack of chunked_file and compr_head2 as well? It seems that these features are also missing in internal.h, I will send a new patchset containing these fixes. Thanks, Jianan > Thanks, > Gao Xiang