netfs.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Gao Xiang <hsiangkao@linux.alibaba.com>
To: Hongbo Li <lihongbo22@huawei.com>,
	xiang@kernel.org, chao@kernel.org, huyue2@coolpad.com,
	jefflexu@linux.alibaba.com, dhavale@google.com,
	dhowells@redhat.com
Cc: linux-erofs@lists.ozlabs.org, netfs@lists.linux.dev
Subject: Re: [PATCH 1/2] erofs: support query erofs ondemand feature by sysfs interface
Date: Fri, 21 Jun 2024 17:28:31 +0800	[thread overview]
Message-ID: <cba6e2f5-7dc7-4a8b-8509-a476faa304fd@linux.alibaba.com> (raw)
In-Reply-To: <2a3fa2a6-8a34-456a-b471-9eec83a4ba74@linux.alibaba.com>



On 2024/6/21 17:16, Gao Xiang wrote:
> 
> 
> On 2024/6/21 14:18, Hongbo Li wrote:
>> Erofs over fscache depands on the config CONFIG_EROFS_FS_ONDEMAND
>> in erofs. There is no way to check whether this feature is supported
>> or not in userspace. We introduce sysfs file `erofs_ondemand` for
>> user checking current features. Here is the example:
>>
>> [Before]
>> $ cat /sys/fs/erofs/features/erofs_ondemand
>> cat: /sys/fs/erofs/features/erofs_ondemand: No such file or directory
>>
>> [After]
>> $ cat /sys/fs/erofs/features/erofs_ondemand
>> supported
>>
>> Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
> 
> Similar here, I guess you could pass in any `fsid` mount
> option and check the return value instead.

Add some words, currently I don't tend to add any sysfs for
new feautures since you could always use golden test images
or test programs to test if any on-disk/runtime feature is
really supported.

Maintaining sysfs files for these causes unnecessary burden
(and could cause unexpected inconsistency). Maybe in the
future I will deprecate all these sysfs files.

Thanks,
Gao Xiang

> 
> Thanks,
> Gao Xiang

  reply	other threads:[~2024-06-21  9:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-21  6:18 [PATCH 0/2] support query ondemand feature for erofs and cachefiles Hongbo Li
2024-06-21  6:18 ` [PATCH 1/2] erofs: support query erofs ondemand feature by sysfs interface Hongbo Li
2024-06-21  9:16   ` Gao Xiang
2024-06-21  9:28     ` Gao Xiang [this message]
2024-06-21  6:18 ` [PATCH 2/2] cachefiles: support query cachefiles ondemand feature Hongbo Li
2024-06-21  9:14   ` Gao Xiang
2024-06-21  9:37     ` Hongbo Li
2024-06-21 10:06       ` Gao Xiang
2024-06-21 10:42         ` Gao Xiang
2024-06-24 11:58           ` Hongbo Li
2024-06-24 12:58             ` Gao Xiang
2024-06-27 12:02               ` Hongbo Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cba6e2f5-7dc7-4a8b-8509-a476faa304fd@linux.alibaba.com \
    --to=hsiangkao@linux.alibaba.com \
    --cc=chao@kernel.org \
    --cc=dhavale@google.com \
    --cc=dhowells@redhat.com \
    --cc=huyue2@coolpad.com \
    --cc=jefflexu@linux.alibaba.com \
    --cc=lihongbo22@huawei.com \
    --cc=linux-erofs@lists.ozlabs.org \
    --cc=netfs@lists.linux.dev \
    --cc=xiang@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).