Minor updates to README

This commit is contained in:
Bahadir Balban
2008-04-19 12:28:49 +01:00
parent df0eccf7b3
commit 9f4e400fed
3 changed files with 21 additions and 16 deletions

View File

@@ -87,12 +87,6 @@ struct vnode *vfs_create(struct tcb *task, struct pathdata *pdata,
* - Is it already open?
* - Allocate a copy of path string since lookup destroys it
* - Check flags and mode.
*
* TODO:
* - All return paths should return by destroying pdata.
* - Need another pdata for vfs_create since first lookup destroys it.
* - Or perhaps we check O_CREAT first, and do lookup once, without the
* last path component which is to be created.
*/
int sys_open(l4id_t sender, const char *pathname, int flags, unsigned int mode)
{

View File

@@ -28,7 +28,7 @@ int vfs_read(unsigned long vnum, unsigned long file_offset,
write_mr(L4SYS_ARG2, npages);
write_mr(L4SYS_ARG3, (u32)pagebuf);
if ((err = l4_sendrecv(VFS_TID, VFS_TID, L4_IPC_TAG_READ)) < 0) {
if ((err = l4_sendrecv(VFS_TID, VFS_TID, L4_IPC_TAG_PAGER_READ)) < 0) {
printf("%s: L4 IPC Error: %d.\n", __FUNCTION__, err);
return err;
}
@@ -52,7 +52,7 @@ int vfs_write(unsigned long vnum, unsigned long file_offset,
write_mr(L4SYS_ARG2, npages);
write_mr(L4SYS_ARG3, (u32)pagebuf);
if ((err = l4_sendrecv(VFS_TID, VFS_TID, L4_IPC_TAG_WRITE)) < 0) {
if ((err = l4_sendrecv(VFS_TID, VFS_TID, L4_IPC_TAG_PAGER_WRITE)) < 0) {
printf("%s: L4 IPC Error: %d.\n", __FUNCTION__, err);
return err;
}
@@ -266,6 +266,14 @@ int sys_read(l4id_t sender, int fd, void *buf, int count)
return 0;
}
/*
* TODO:
* Page in those writeable pages.
* Update them,
* Then page them out.
*
* If they're new, fs0 should allocate those pages accordingly.
*/
int sys_write(l4id_t sender, int fd, void *buf, int count)
{
BUG();