mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +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));
|
memset(&node->attr, 0, sizeof(vattr_t));
|
||||||
node->attr.type = type;
|
node->attr.type = type;
|
||||||
|
node->attr.inode = ((tmpfs_t *)vfs)->inodenumber++;
|
||||||
node->vnode.type = type;
|
node->vnode.type = type;
|
||||||
node->vnode.refcount = 1;
|
node->vnode.refcount = 1;
|
||||||
SPINLOCK_INIT(node->vnode.lock);
|
SPINLOCK_INIT(node->vnode.lock);
|
||||||
|
|||||||
Reference in New Issue
Block a user