vfs: change how the vfs_create return argument works and split the rdev vattr member

This commit is contained in:
Matheus
2023-05-01 19:21:04 -03:00
parent a30a0b1d19
commit 9ab2ad5095
3 changed files with 13 additions and 7 deletions
+1 -5
View File
@@ -159,11 +159,7 @@ void initrd_unpack() {
VOP_RELEASE(node);
break;
case TAR_DIR:
err = vfs_create(vfsroot, entry.name, &entryattr, V_TYPE_DIR, &node);
if (err)
break;
VOP_RELEASE(node);
err = vfs_create(vfsroot, entry.name, &entryattr, V_TYPE_DIR, NULL);
break;
case TAR_SYMLINK:
err = vfs_link(NULL, entry.link, vfsroot, entry.name, V_TYPE_LINK, &entryattr);