Commit Graph

25 Commits

Author SHA1 Message Date
Bahadir Balban
0557fa8910 Gotta find a way to pass on updated file size before write_file_pages. 2008-04-26 01:03:11 +01:00
Bahadir Balban
df0eccf7b3 A file can be created.
Now up to sys_write() in pager, which needs to be filled in.
2008-04-19 01:27:41 +01:00
Bahadir Balban
8c4c436925 Reorganised sys_open.
vfs_create and mknod now returns the newly created vnode.
(which might be used by upper layers).
2008-04-19 00:40:48 +01:00
Bahadir Balban
730e7c210f Added resolving of current directory in case lookup starts from current dir. 2008-04-16 14:48:05 +01:00
Bahadir Balban
e722ee0115 Root was a child of itself, removed that relationship.
Root is only a parent of itself, it shouldn't show up in its children.
2008-04-16 00:20:59 +01:00
Bahadir Balban
a9420d3dc9 mkdir almost working.
Added changes to pathname lookup code so that the root
directory special case is handled properly.
2008-04-15 00:51:58 +01:00
Bahadir Balban
287b7705da Towards working mkdir. 2008-04-14 14:38:04 +01:00
Bahadir Balban
2efffdfa88 Seem to have fixed dirbuf allocation.
Dirbuf allocation was broken, fixed it.
Added more comments on reading directories.

Issues: fs0 ought to check buf address for sys_readdir(). Currently
test0 is passing an area on its stack and fs0 is writing the data to its own
address space (i.e. an area on its own stack.)
2008-04-13 00:23:21 +01:00
Bahadir Balban
367e455506 Fixed compilation errors for filldir/sys_readdir() changes. 2008-04-12 18:03:49 +01:00
Bahadir Balban
d7b06b5304 sys_readdir and root vnode fixes.
Changes towards successfully filling dirent structures for sys_readdir
and creating a root vnode for the filesystem.
2008-04-12 17:57:45 +01:00
Bahadir Balban
0c9b42121a Adds reading pages into page-cache in an ordered manner.
Added reading pages from the page cache into user buffer for sys_read.
Increases stack sizes to 4 pages.
Updated README to include more details about multi-pager environments.
2008-02-27 01:17:36 +00:00
Bahadir Balban
2a5cdf80b5 incomplete changes for sys_write/sys_close 2008-02-20 22:47:22 +00:00
Bahadir Balban
f078116901 Added per-task curdir. and chdir, pager_read/write, mmap and munmap calls.
They look like what they should look like, but untested.
2008-02-20 00:50:03 +00:00
Bahadir Balban
0fdc64ba2d Added vfs_create() to create files and directories.
Moved mkdir to mknod so that mknod is the common handler for all node creation.
2008-02-16 15:22:08 +00:00
Bahadir Balban
08b1e0e42c Adds tracking of hardlinks when reading a directory. 2008-02-16 12:36:50 +00:00
Bahadir Balban
09bd001e1a Added sys_mkdir and memfs_vnode_mkdir() functions. Untested but all implemented. 2008-02-15 17:32:41 +00:00
Bahadir Balban
5de93f707c Fixed lookup return value. Now using generic_lookup directy, i.e.
not through a vnode, because it really isn't fs-specific.
2008-02-15 12:22:07 +00:00
Bahadir Balban
7bbc21d105 Another minor fix in lookup.c 2008-02-14 21:32:39 +00:00
Bahadir Balban
329dc53982 FS0 compiles with the changes, also caught an unparanthesised double-statement
if clause in lookup.c
2008-02-14 21:23:49 +00:00
Bahadir Balban
1b387a1704 Implemented vfs_lookup_byvnum() close to what it should look like. 2008-02-14 15:46:30 +00:00
Bahadir Balban
d3b6817887 Some more additional changes in same places. 2008-02-14 15:13:08 +00:00
Bahadir Balban
a989e1f774 sys_readdir and memfs_readdir closer to targeted look and feel.
We now have a single dirbuf of size PAGE_SIZE kept on the vnode. This is
to be used for directory contents only. The reason it's kept on FS0 is
because the contents are modified by calls such as mkdir or create, and otherwise
these would have been handled by mm0 on the page cache buffers, which wouldn't work.
2008-02-14 14:37:56 +00:00
Bahadir Balban
60cce15a4d Some preliminary efforts to reading directory contents in fs0.
Need to still decide whether content buffers are provided by mm0,
whether need to return them back to mm0, and the read count.
	modified:   tasks/fs0/src/memfs/vnode.c
	modified:   tasks/fs0/src/syscalls.c
2008-02-13 00:24:57 +00:00
Bahadir Balban
ba0e3ada21 Few more fixes.
Boot files and tasks are now initialised together. Theads can ask for particular
space and thread ids, if they're unused. This enables us to get predefined ids for
known tasks such as the VFS task.

Fixes to README
Other minor fixes.
2008-02-09 14:24:49 +00:00
Bahadir Balban
cab2e8bdd3 Finished adding untested bare functionality vfs
Finished adding untested shm syscalls.
Finished adding untested l4 send/recv helpers

Everything compiles. Now going to fix lots of bugs ;-)
2008-02-03 17:42:38 +00:00