#define EXT2 0
#define REISERFS 2
-#define EXT3 1
+#define EXT4 1
FILE *flog = NULL;
char *mylog;
int rc = 0;
char commandstring[STRING_SIZE];
char mkfscommand[STRING_SIZE];
- char *fstypes[] = { "ext2", "ext3", "ReiserFS", NULL };
+ char *fstypes[] = { "ext2", "ext4", "ReiserFS", NULL };
int fstype = REISERFS;
int choice;
int i;
} else if (fstype == REISERFS) {
mysystem("/sbin/modprobe reiserfs");
sprintf(mkfscommand, "/sbin/mkreiserfs -f");
- } else if (fstype == EXT3) {
- mysystem("/sbin/modprobe ext3");
- sprintf(mkfscommand, "/sbin/mke2fs -T ext3 -c");
+ } else if (fstype == EXT4) {
+ mysystem("/sbin/modprobe ext4");
+ sprintf(mkfscommand, "/sbin/mke2fs -T ext4 -c");
}
snprintf(commandstring, STRING_SIZE, "/sbin/mke2fs -T ext2 -c %s1", hdparams.devnode_part);
} else if (fstype == REISERFS) {
replace("/harddisk/etc/fstab", "FSTYPE", "reiserfs");
replace("/harddisk/boot/grub/grub.conf", "MOUNT", "ro");
- } else if (fstype == EXT3) {
+ } else if (fstype == EXT4) {
snprintf(commandstring, STRING_SIZE, "tune2fs -j %s3", hdparams.devnode_part);
if (runcommandwithstatus(commandstring, ctr[TR_JOURNAL_EXT3]))
{
replace("/harddisk/etc/fstab", "FSTYPE", "ext2");
goto NOJOURNAL;
}
- replace("/harddisk/etc/fstab", "FSTYPE", "ext3");
+ replace("/harddisk/etc/fstab", "FSTYPE", "ext4");
NOJOURNAL:
replace("/harddisk/boot/grub/grub.conf", "MOUNT", "ro");
}