mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
tmpfs: handle inode number properly
This commit is contained in:
@@ -384,6 +384,7 @@ static tmpfsnode_t *newnode(vfs_t *vfs, int type) {
|
||||
|
||||
memset(&node->attr, 0, sizeof(vattr_t));
|
||||
node->attr.type = type;
|
||||
node->attr.inode = ((tmpfs_t *)vfs)->inodenumber++;
|
||||
node->vnode.type = type;
|
||||
node->vnode.refcount = 1;
|
||||
SPINLOCK_INIT(node->vnode.lock);
|
||||
|
||||
Reference in New Issue
Block a user