ext4 filesystem support added

This commit is contained in:
Anton V. Boyarshinov 2013-07-16 17:39:08 +04:00
parent 608fa90730
commit b5573f97da
2 changed files with 6 additions and 1 deletions

3
disk.c
View File

@ -255,11 +255,12 @@ static enum return_type try_with_partition(char *choice)
if (my_mount(device_fullname, IMAGE_LOCATION, "ext2", 0) == -1 &&
my_mount(device_fullname, IMAGE_LOCATION, "ext3", 0) == -1 &&
my_mount(device_fullname, IMAGE_LOCATION, "ext4", 0) == -1 &&
my_mount(device_fullname, IMAGE_LOCATION, "vfat", 0) == -1 &&
my_mount(device_fullname, IMAGE_LOCATION, "ntfs", 0) == -1 &&
my_mount(device_fullname, IMAGE_LOCATION, "iso9660", 0) == -1 &&
my_mount(device_fullname, IMAGE_LOCATION, "reiserfs", 0) == -1) {
stg1_error_message("I can't find a valid filesystem (tried: ext2, ext3, vfat, ntfs, iso9660, reiserfs).");
stg1_error_message("I can't find a valid filesystem (tried: ext2, ext3, ext4, vfat, ntfs, iso9660, reiserfs).");
return RETURN_ERROR;
}

View File

@ -218,6 +218,10 @@ int my_mount(char *dev, char *location, char *fs, int force_rw)
if (!strcmp(fs, "ext2"))
my_insmod("ext2", NULL);
if (!strcmp(fs, "ext3"))
my_insmod("ext3", NULL);
if (!strcmp(fs, "ext4"))
my_insmod("ext4", NULL);
if (!strcmp(fs, "vfat")) {
my_insmod("vfat", NULL);