3 # Turn quotas on or off for some filesystem
5 require './quota-lib.pl';
7 &can_edit_filesys($in{'dir'}) && $access{'enable'} ||
8 &error($text{'activate_eallow'});
10 if ($in{'active'} == 0) {
12 $whatfailed = $text{'activate_eon'};
13 if ($error = "aon($in{'dir'}, $in{'mode'})) {
16 &webmin_log("activate", undef, $in{'dir'}, \%in);
20 $whatfailed = $text{'activate_eoff'};
21 if ($error = "aoff($in{'dir'}, $in{'mode'})) {
24 &webmin_log("deactivate", undef, $in{'dir'}, \%in);