On Tue 04-06-24 14:54:01, JunChao Sun wrote: > Miklos Szeredi <miklos@xxxxxxxxxx> 于2024年6月4日周二 14:40写道: > > > > On Mon, 3 Jun 2024 at 13:37, JunChao Sun <sunjunchao2870@xxxxxxxxx> wrote: > > > > > Given these challenges, I would like to inquire about the community's > > > perspective on implementing quota functionality at the FUSE kernel > > > part. Is it feasible to implement quota functionality in the FUSE > > > kernel module, allowing users to set quotas for FUSE just as they > > > would for ext4 (e.g., using commands like quotaon /mnt/fusefs or > > > quotaset /mnt/fusefs)? Would the community consider accepting patches > > > for this feature? > > > > > > > I would say yes, but I have no experience with quota in any way, so > > > cannot help with the details. > > Thanks for your reply. I'd like try to implement this feature. Nice idea! But before you go and spend a lot of time trying to implement something, I suggest that you write down a design how you imagine all this to work and we can talk about it. Questions like: Do you have particular usecases in mind? Where do you plan to perform the accounting / enforcement? Where do you want to store quota information? How do you want to recover from unclean shutdowns? Etc... Honza -- Jan Kara <jack@xxxxxxxx> SUSE Labs, CR