#!/usr/local/bin/perl # newfs_form.cgi # Display a form asking for the parameters of a new filesystem require './fdisk-lib.pl'; &ReadParse(); &can_edit_disk($in{'dev'}) || &error($text{'mkfs_ecannot'}); &ui_print_header(undef, $text{'mkfs_title'}, ""); print "
\n"; print "\n"; print "\n"; print &text('mkfs_desc1', "".&fstype_name($in{type})."", "$in{dev}"),"

\n"; if ((@stat = &device_status($in{dev})) && $stat[1] ne "swap") { print &text('mkfs_desc2', "$stat[0]", &fstype_name($in{type})),"

\n"; } print "\n"; print "\n"; print "
$text{'mkfs_options'}
\n"; &mkfs_options($in{type}); print "
\n"; print "

\n"; &ui_print_footer("", $text{'index_return'});