| Server IP : 104.21.25.180 / Your IP : 162.159.115.41 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/lvm/ |
Upload File : |
#!/usr/bin/perl
# mkfs.cgi
# Create a new filesystem on a logical volume
require './lvm-lib.pl';
&foreign_require("proc");
&ReadParse();
&error_setup($text{'mkfs_err'});
$cmd = &fdisk::mkfs_parse($in{'fs'}, $in{'dev'});
&ui_print_unbuffered_header(undef, $text{'mkfs_title'}, "");
print &text('mkfs_exec', "<tt>$cmd</tt>"),"<p>\n";
print "<pre>\n";
&proc::safe_process_exec_logged($cmd, 0, 0, STDOUT, undef, 1);
print "</pre>\n";
if ($?) { print "<b>$text{'mkfs_failed'}</b> <p>\n"; }
else { print "$text{'mkfs_ok'} <p>\n"; }
$config{'lasttype_'.$in{'dev'}} = $in{'fs'};
&save_module_config();
&webmin_log("mkfs", "lv", $in{'dev'}, \%in);
&ui_print_footer("index.cgi?mode=lvs", $text{'index_return3'},
"edit_lv.cgi?vg=$in{'vg'}&lv=$in{'lv'}", $text{'lv_return'});