3 # Where the fsck command actually gets run
5 require './fdisk-lib.pl';
7 &can_edit_disk($in{'dev'}) || &error($text{'fsck_ecannot'});
8 &ui_print_unbuffered_header(undef, $text{'fsck_title'}, "");
10 $cmd = &fsck_command($in{'type'}, $in{'dev'});
11 print "<b>",&text('fsck_exec', "<tt>$cmd</tt>"),"</b>\n";
13 &foreign_call("proc", "safe_process_exec_logged",
14 $cmd, 0, 0, STDOUT, undef, 1);
16 print "<b>... ",&fsck_error($?/256),"</b><p>\n";
17 &webmin_log("fsck", undef, $in{'dev'}, \%in);
19 &ui_print_footer("", $text{'index_return'});