Skip to content

Commit e743900

Browse files
author
Till Brehm
committed
Implemented #4045 Add support for OpenVZ simfs in website quota code
1 parent d682d66 commit e743900

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ function update($event_name, $data) {
888888
$file_system = $df_output[0];
889889
$primitive_root = $df_output[1];
890890

891-
if ( in_array($file_system , array('ext2','ext3','ext4'), true) ) {
891+
if ( in_array($file_system , array('ext2','ext3','ext4','simfs','reiserfs'), true) ) {
892892
exec('setquota -u '. $username . ' ' . $blocks_soft . ' ' . $blocks_hard . ' 0 0 -a &> /dev/null');
893893
exec('setquota -T -u '.$username.' 604800 604800 -a &> /dev/null');
894894
} elseif ($file_system == 'xfs') {

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ function update($event_name, $data) {
747747
$file_system = $df_output[0];
748748
$primitive_root = $df_output[1];
749749

750-
if ( in_array($file_system , array('ext2','ext3','ext4'), true) ) {
750+
if ( in_array($file_system , array('ext2','ext3','ext4','simfs','reiserfs'), true) ) {
751751
exec('setquota -u '. $username . ' ' . $blocks_soft . ' ' . $blocks_hard . ' 0 0 -a &> /dev/null');
752752
exec('setquota -T -u '.$username.' 604800 604800 -a &> /dev/null');
753753
} elseif ($file_system == 'xfs') {

0 commit comments

Comments
 (0)