Bahadir Balban
276b4643c6
Removed linux linked list dependency.
2009-06-02 13:19:17 +03: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
ab588c279b
Fixed the component-consumption-every-lookup problem.
...
Now components only consumed on child lookup recursions.
2008-04-16 00:04:54 +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
d6d97876bb
Page fault handling fix.
...
Factored out mapping of the physical page as the final generic code
after all fault-specific handling is done.
Fixed the error that zero page didn't have an owner (devzero).
Fixed the error that struct dirent did not have the record length
field as u16 as expected by userspace.
2008-04-14 00:09:57 +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
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
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
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
2440b5be61
Some efforts to adding better support for readdir
2008-02-14 12:08:21 +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
Bahadir Balban
adf54578f8
Improvising on disk layout of simple unix-like filesystem.
...
modified: tasks/fs0/include/fs.h
new file: tasks/fs0/src/simplefs/sfslayout.h
2008-01-18 15:20:46 +00:00
Bahadir Balban
66abb3d7f8
Added a public domain malloc temporarily.
...
More changes to fs0, still improvising.
2008-01-16 18:12:20 +00:00
Bahadir Balban
c921197e69
A first step in writing a dynamically created bootfs for boot images.
2008-01-16 01:37:24 +00:00
Bahadir Balban
6bb5b45212
FS0 compiles now, with a mock-up rootfs.
...
Having progress on vfs slowly but surely ;-)
2008-01-15 00:34:10 +00:00
Bahadir Balban
e2b791a3d8
Initial commit
2008-01-13 13:53:52 +00:00