tifs icon indicating copy to clipboard operation
tifs copied to clipboard

quotas & disk space usage info

Open suzhouclark opened this issue 2 years ago • 5 comments

I am new for tifs. I build a test env for tifs. I have two questions.

  1. Could you guide me how to set qutoas on tifs (maybe set some options when mount )?
  2. when I use df command, there is no disk space usage info, it display "- tifs "

suzhouclark avatar Jul 06 '21 01:07 suzhouclark

Oh, I think it's a wrong implementation of statfs, we should only set used space instead of size.

Hexilee avatar Jul 06 '21 05:07 Hexilee

It seems we must set the total size, which is calculated by blocks and bsize. In this case, if we set the used space, the available space will always be zero (a confused behaviour).

Hexilee avatar Jul 06 '21 05:07 Hexilee

What about quotas on tifs (fuse) ?

suzhouclark avatar Jul 06 '21 06:07 suzhouclark

We can have quotas, I can do that at this weekends. You are welcome to create a PR, just add a mount option and store it in Meta.

Hexilee avatar Jul 06 '21 08:07 Hexilee

Should be implemented in #d816e44, please wait for v0.2.0 to use this feature.

Hexilee avatar Jul 13 '21 16:07 Hexilee