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-28, 09:07:23

Author Topic: Mustafa fix the quota !!!  (Read 2201 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Mustafa fix the quota !!!
« on: 2016-05-21, 21:19:21 »
Example client with 15 GB:

Quote
Disk quotas for user nowyklientxxx (uid 8062):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
       /dev/md2       0  3932160 3932160               1  157287  157287
       /dev/md4      20  3932160 3932160               5  157287  157287

This is exactly 3,93 GB not 15 GB !

Quote
$perblock = getFSBlockSizeInKb();
                $totalblock = $disk / $perblock;

It should be like this:

Quote
  $perblock = getFSBlockSizeInKb();
                $totalblock = $disk * $perblock / $perblock;

Then it's 15 GB:

Quote
Disk quotas for user nowyklientxxx (uid 8062):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
       /dev/md2       0  15728640 15728640               1  157287  157287
       /dev/md4      20  15728640 15728640               5  157287  157287

 


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

Page created in 0.041 seconds with 19 queries.

web stats analysis