Age | Commit message (Collapse) | Author |
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Supported VOPs as of now:
- lookup()
- create()
- reclaim()
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Add an O_CREAT flag to the ABI headers so that files can be created in
the VFS.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
This commit adds supports for full lookups and path traversal when
FS_ATTR_IMAGE is unset. We've also added a NAMEI_CREATE flag to create
as it traverses.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
The create VOP allows the caller to create a node within the parent
directory of a filesystem represented by a vnode.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Ensure that the trapframe in the PCB is the latest, upon kernel entry we
copy it so it isn't stale.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Some hardware may not work too well with the i8042 and interrupts, as a
mitigation, we've added an option to poll instead of using interrupts
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
There is no need to dequeue any processes in the idle loop as this
happens once per timer interrupt
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Some modules may rely on kernel threads, therefore we'll need the
scheduler up before we start them
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Improve naming to be less confusing
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Introduces kernel threads. by using the proc_ktd() function, one can
spawn a CPL 0 running thread to the desired code.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
This commit introduces the initial login program to require a user to
enter their credentials before they can use the system
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
The reclaim callback simply reclaims any filesystem specific resources used with
vnodes back to the operating system.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Adds offset handling to the vnode read and write callbacks.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
If there is a file that is found, we want to return the result before we
return from the function, fixes issue with uninitialized vnodes on
lookups
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
If we go through the entire function without getting a vnode, then there
is no file to be found
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Introduces a read callback wrapper implementation for vnodes to simplify
file reading
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Everytime a look up is performed, we should set the vnode operations on
the resulting vnode
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
The 'lsdisk' utility is a simple too to list the disks present on the
machine.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Add a new QUERY operation code that is used to fetch information about a
specific disk.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
The DMS engine handles performing I/O based on specific opcodes given to
it and drives the callback wrappers.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
In order to safely copy between disk and host memory through a
programming interface, DMS must be aware of the hardware disk block size
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|