$ext3_support = 1;
$no_mount_check = 1;
$bind_support = 1; # XXX which version?
+ if ($1 >= 2.6) {
+ $ext4_support = 1;
+ }
}
if (&has_command("mkfs.xfs")) {
$xfs_support = 1;
elsif ($_[0] eq $smbfs_fs)
{ return ($smbfs_support >= 3 ? 2 : 0, 1, 0, 0); }
elsif ($_[0] eq "cifs") { return (2, 1, 0, 0); }
-elsif ($_[0] eq "ext2" || $_[0] eq "ext3" || $_[0] eq "minix" ||
+elsif ($_[0] =~ /^ext\d+$/ || $_[0] eq "minix" ||
$_[0] eq "xiafs" || $_[0] eq "xfs")
{ return (2, 1, 1, 0); }
else
push(@sup, "autofs") if ($autofs_support);
push(@sup, "tmpfs") if ($tmpfs_support);
push(@sup, "ext3") if ($ext3_support);
+push(@sup, "ext4") if ($ext4_support);
push(@sup, "xfs") if ($xfs_support);
push(@sup, "jfs") if ($jfs_support);
push(@sup, "bind") if ($bind_support);
local(%fsmap);
%fsmap = ("ext2","Old Linux Native Filesystem",
"ext3","Linux Native Filesystem",
+ "ext4","New Linux Native Filesystem",
"minix","Minix Filesystem",
"msdos","MS-DOS Filesystem",
"nfs","Network Filesystem",
defined($options{"user"}) ? "" : "checked";
}
-if ($_[0] eq "ext2" || $_[0] eq "ext3") {
+if ($_[0] =~ /^ext\d+$/) {
# Ext2 has lots more options..
print "<tr $tb> <td colspan=4><b>$text{'edit_ext_opt'}</b></td> </tr>\n";
if ($no_mount_check) {
if ($in{nfs_sec} == 2) { $options{"sec"} = "krb5p"; }
}
}
-elsif ($_[0] eq "ext2" || $_[0] eq "ext3") {
+elsif ($_[0] =~ /^ext\d+$/) {
# More options for ext2..
if ($no_mount_check) {
delete($options{"bsddf"}); delete($options{"minixdf"});