Fix FAT driver issues (FAT32 while being under 32MiB), liballoc alignment so SSE doesnt break

This commit is contained in:
2026-03-10 21:01:49 +01:00
parent 38557bab7d
commit 4b099f04f5
27 changed files with 3447 additions and 18 deletions

View File

@@ -64,7 +64,9 @@ static void mkfile (struct context* context, char** file_paths, size_t files_cou
continue;
}
create_file (path);
if ((ret = create_file (path)) < 0) {
cprintf (context, "ERROR could not create file '%s': %s\n", file_path, str_status[-ret]);
}
volume_close ();
}
@@ -284,14 +286,14 @@ static void mkvol (struct context* context, const char* volume, const char* str_
} else if (strcmp (str_fs_type, "fat32") == 0) {
fs_type = FS_FAT32;
} else {
cprintf (context, "Unknown filesystem '%s'\n", str_fs_type);
cprintf (context, "ERROR Unknown filesystem '%s'\n", str_fs_type);
return;
}
int ret = create_volume (volume, fs_type, device);
if (ret < 0)
cprintf (context, "Could not create volume: %s\n", str_status[-ret]);
cprintf (context, "ERROR Could not create volume: %s\n", str_status[-ret]);
}
static void help (struct context* context) {