MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: Spacedust on 2014-11-16, 10:23:11

Title: Kloxo disk usage
Post by: Spacedust on 2014-11-16, 10:23:11
We have now linuxlib.php:

Quote
$inode = 1000000;

        lxshell_return("setquota", "-u", $username, $disk, $disk, $inode, $inode, "-a");

so all accounts can have up to 1 milion files.

We would like to limit to 1/100 files:

Quote
$inode = $disk * 0,01;

        lxshell_return("setquota", "-u", $username, $disk, $disk, $inode, $inode, "-a");

The problem is that for some quotas like 10 GB which is 10240 MB it does not work because it gives:

'setquota'  '-u' 'viciu777' '10486760' '10485760' '104867.84' '104867.84' '-a'

and these .84 does not work...

This means there is something wrong with setting quota:

- example you set 10000 MB quota
- Kloxo shows 9.77 GB
- real quota is properly set for 10240000 bytes

Can you fix it ?