fix stupid bugs

strcmp was funky, added a few guard checks to hashtable, added error printing to initrd and fixed swapgs (again) in isr.asm
This commit is contained in:
Matheus
2022-08-16 20:37:45 -03:00
parent 7a540ca1e1
commit df2e7b1c34
4 changed files with 27 additions and 6 deletions
+8 -2
View File
@@ -152,10 +152,16 @@ void initrd_parse(){
switch(entry.type){
case TAR_FILE:
vfs_create(vfs_root(), entry.name, entry.mode);
int err = vfs_create(vfs_root(), entry.name, entry.mode);
if(err){
printf("Failed creating %s: ERROR %lu\n", entry.name, err);
}
break;
case TAR_DIR:
vfs_mkdir(vfs_root(), entry.name, entry.mode);
err = vfs_mkdir(vfs_root(), entry.name, entry.mode);
if(err)
printf("Failed creating %s: ERROR %lu\n", entry.name, err);
break;
default:
_panic("Unsupported file type in initrd!", 0);