incomplete changes for sys_write/sys_close

This commit is contained in:
Bahadir Balban
2008-02-20 22:47:22 +00:00
parent f078116901
commit 2a5cdf80b5
4 changed files with 51 additions and 7 deletions

View File

@@ -254,6 +254,10 @@ int memfs_vnode_mknod(struct vnode *v, char *dirname, unsigned int mode)
strncpy((char *)memfsd->name, dirname, MEMFS_DNAME_MAX);
memfsd->name[MEMFS_DNAME_MAX - 1] = '\0';
BUG(); /* FIXME: Fix this issue. */
/* Write the updated directory buffer back to disk */
v->fops.write(v, 0, 1, v->dirbuf.buffer);
/* Update parent vnode */
v->size += sizeof(*memfsd);