Support systems that use quota instead of df #421
ronilaukkarinen
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Flood uses
df -T
in server/util/diskUsageUtil.ts where it defines the disks in use. However, I have a box that has a jail anddf
is useless as it shows all other filesystems we don't use in our jail. Users have to usequota
to get their own data usage on their space.As
quota
uses different format thandf
it's not enough to just change the command. We also need more arguments to get all data in the same line:$ quota -w --show-mntpoint Disk quotas for user rolle (uid 1020): Filesystem blocks quota limit grace files quota limit grace /dev/sdb1 /home2 1059357988 3905945600 3905945600 266012 0 0
I got flood working with quota by modifying the linux option like so:
This works.
I'm not very experienced with ts/js but this could be an option in Flood. Just an idea and working concept I'd like to share. Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions