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 897BFC433FE for ; Fri, 12 Nov 2021 10:58:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6FBD960F90 for ; Fri, 12 Nov 2021 10:58:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234532AbhKLLBD (ORCPT ); Fri, 12 Nov 2021 06:01:03 -0500 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:13864 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234144AbhKLLBC (ORCPT ); Fri, 12 Nov 2021 06:01:02 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0UwBxaTg_1636714678; Received: from B-P7TQMD6M-0146.local(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0UwBxaTg_1636714678) by smtp.aliyun-inc.com(127.0.0.1); Fri, 12 Nov 2021 18:58:00 +0800 Date: Fri, 12 Nov 2021 18:57:58 +0800 From: Gao Xiang To: Huang Jianan 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 Subject: Re: [PATCH v5 1/2] erofs: add sysfs interface Message-ID: References: <20211112023003.10712-1-huangjianan@oppo.com> <67b86422-3133-ff7b-ddb7-c25939bee549@oppo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <67b86422-3133-ff7b-ddb7-c25939bee549@oppo.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 12, 2021 at 06:10:37PM +0800, Huang Jianan wrote: > 在 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. Yeah, these were not used before, but as you're introducing the sysfs directories, they need to be filled up. Thanks, Gao Xiang > > Thanks, > Jianan > > > Thanks, > > Gao Xiang