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
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
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
2440b5be61
Some efforts to adding better support for readdir
2008-02-14 12:08:21 +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
0c7d2bbfd1
swapped write_mr() arguments.
...
write_mr() now works as write_mr(mr_offset, mr_val), which makes sense.
2008-02-09 15:57:44 +00:00
Bahadir Balban
57420942ba
Removed unnecessary printks, fixed few minor issues.
2008-02-09 15:48:10 +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