#!/usr/local/bin/perl # tunefs.cgi # Do the tuning of a filesystem require './fdisk-lib.pl'; &ReadParse(); &can_edit_disk($in{'dev'}) || &error($text{'tunefs_ecannot'}); &error_setup($text{'tunefs_err'}); $cmd = &tunefs_parse($in{type}, $in{dev}); &ui_print_unbuffered_header(undef, $text{'tunefs_title'}, ""); print "",&text('tunefs_exec', "$cmd"),"\n"; print "
\n";
&foreign_call("proc", "safe_process_exec_logged",
	      $cmd, 0, 0, STDOUT, undef, 1);
print "
\n"; if ($?) { print "$text{'tunefs_failed'}

\n"; } else { print "$text{'tunefs_ok'}

\n"; } &webmin_log("tunefs", undef, $in{'dev'}, \%in); &ui_print_footer("", $text{'index_return'});