Re: [PATCH] erofs: add sysfs node to control cached decompression strategy

From: Chunhai Guo
Date: Mon Nov 11 2024 - 06:10:28 EST


在 2024/11/11 10:28, Gao Xiang 写道:
> Hi Chunhai,
>
> On 2024/11/1 20:42, Chunhai Guo wrote:
>> Add sysfs node to control cached decompression strategy, and all the
>> cache will be cleaned up when the strategy is set to
>> EROFS_ZIP_CACHE_DISABLED.
>>
>> Signed-off-by: Chunhai Guo <guochunhai@xxxxxxxx>
> I guess remount could also change the decompression strategy?
> Or there are some other concern that remount is not usable
> for your use cases?
Yes, remount can change the strategy. However, the cache will not be
cleaned when the strategy is changed to EROFS_ZIP_CACHE_DISABLED. I will
make another patch to address this during remount. Thank you for your
suggestion.
>
> Thanks,
> Gao Xiang