Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-19, 11:42:40

Author Topic: Kloxo disk usage  (Read 1900 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Kloxo disk usage
« 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 ?

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.029 seconds with 18 queries.

web stats analysis