mirror of
https://github.com/drasko/codezero.git
synced 2026-01-31 04:03:13 +01:00
A file can be created.
Now up to sys_write() in pager, which needs to be filled in.
This commit is contained in:
@@ -245,7 +245,7 @@ struct vnode *memfs_vnode_mknod(struct vnode *v, const char *dirname,
|
||||
return newv;
|
||||
|
||||
/* Initialise the vnode */
|
||||
vfs_set_type(newv, S_IFDIR);
|
||||
vfs_set_type(newv, mode);
|
||||
|
||||
/* Get the next directory entry available on the parent vnode */
|
||||
if (v->dirbuf.npages * PAGE_SIZE <= v->size)
|
||||
|
||||
Reference in New Issue
Block a user