Skip to content

Commit 5785b0a

Browse files
committed
Fix mb_soft and mb_hard values when using xfs filesystem for website quota
1 parent 06cb57f commit 5785b0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,7 @@ function update($event_name, $data) {
878878
if($data['new']['hd_quota'] > 0) {
879879
$blocks_soft = $data['new']['hd_quota'] * 1024;
880880
$blocks_hard = $blocks_soft + 1024;
881+
$mb_soft = $data['new']['hd_quota'];
881882
$mb_hard = $mb_soft + 1;
882883
} else {
883884
$mb_soft = $mb_hard = $blocks_soft = $blocks_hard = 0;

0 commit comments

Comments
 (0)