Commit graph vbos/fs
Author SHA1 Message Date
b6992dc0cf vfs: inode: fix inode_free
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-04 00:12:48 +02:00
7799f3b622 vfs: further switch to dirent tracking
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-04 00:08:16 +02:00
f9d760993d vfs: switch to dirent tracking over inode tracking
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-02 22:14:54 +02:00
5c55192c76 vfs: further fix logic errors in vfs_open
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-02 21:25:39 +02:00
dd00e79b18 vfs: fix logic errors and leaks in vfs_open
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-02 14:09:41 +02:00
a8540494a9 vfs: add vfs_open
vfs_open parses a path and returns the correct inode. The out inode is a
double pointer argument passed to vfs_open, and the return value is an
error code, or 0

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-01 23:06:39 +02:00
f0a9ff299b gitignore: add .cpio
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-06-28 17:13:41 +02:00
750ffa2e16 fs: add ramfs 2026-05-12 07:31:17 -04:00
a252a3f8e9 kv2: initialize memory manager, early pci devices
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2026-05-12 03:00:45 -04:00
Michael Shaw
d2ef885e8d v2 initial commit 2026-04-11 11:35:31 -04:00
Michael Shaw
4baf3e911b vfs: cleanup 2025-03-05 20:14:03 -05:00
Michael Shaw
eccc30372e vfs_open: split into two functions 2025-03-05 20:12:37 -05:00
Michael Shaw
30ffa8780e vfs: add vfs_create_file 2025-02-24 20:01:31 -05:00
Michael Shaw
09d3f77cd8 ext2: add locking 2025-02-24 19:54:45 -05:00
Michael Shaw
51319c2b53 ext2: add comment and remove mkdir 2025-02-24 19:41:49 -05:00
Michael Shaw
12d97ffad3 ext2: fix includes 2025-02-24 19:38:37 -05:00
Michael Shaw
2bcd8dc6be ext2: add unlink 2025-02-24 19:35:23 -05:00
Michael Shaw
e42eb8d714 ext2: add writing features 2025-02-18 15:20:24 -05:00
Michael Shaw
7d9fdb8e13 ext2: fix dirent type 2025-02-17 19:45:03 -05:00
Michael Shaw
623cb5905a ext2: add ext2 driver v2
This driver is not yet feature complete, yet it is much cleaner than the
old one.
2025-02-17 19:41:07 -05:00
Michael Shaw
1ae9bce778 fs: ext2 improvements 2025-02-16 16:46:05 -05:00
Michael Shaw
5159a530c6 ext2: increment block on large reads 2025-02-14 16:31:16 -05:00
Michael Shaw
4ec7ff5aaa ipc: add fifo 2025-02-12 20:01:48 -05:00
Michael Shaw
02c0a70a30 vfs: refcount file structs used in fdescs 2024-08-21 15:44:50 -04:00
Michael Shaw
52ba70f4b7 dev: remove console driver, merge into serial
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2024-06-17 20:32:44 -04:00
Michael Shaw
dfed938383 sched: apply proper blocking mechanism for chardev
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2024-06-17 14:09:53 -04:00
Michael Shaw
6fdccef0ea vfs_read: check for type on buffer size check
Now processes properly block
2024-06-16 22:39:17 -04:00
Michael Shaw
20e25dad40 block: link child partitions to parent bdev 2024-03-02 00:35:50 -05:00
Michael Shaw
fdc559f07a dev: move block.c into dev directory 2024-02-25 17:33:01 -05:00
Michael Shaw
009cf4f6dc remove stdio_ops.c 2024-02-13 00:30:12 -05:00
Michael Shaw
4e2d2d0f4e devfs: enable writing to device files 2024-02-13 00:13:06 -05:00
Michael Shaw
0f5da3c539 vfs: eliminte writes to NULL error code pointers 2024-02-12 23:59:56 -05:00
Michael Shaw
389ca018d1 vfs: fix bug in vfs_open with leading / char 2024-02-12 23:56:06 -05:00
Michael Shaw
6d67d7fbfe devfs: alloc devfs_dev_info struct for each dev 2024-02-12 23:48:58 -05:00
Michael Shaw
3b247ad5e9 devfs: add console to devfs 2024-02-12 23:24:15 -05:00
Michael Shaw
0daa7ef497 devfs: fix write to wrong pointer in devfs_insert 2024-02-12 22:47:48 -05:00
Michael Shaw
285086d77d vfs: remove opendir, readdir, closedir 2024-02-12 22:47:18 -05:00
Michael Shaw
c487c4c9dd devfs: add vnodes to devfs tree 2024-02-12 21:11:56 -05:00
Michael Shaw
100d26f504 devfs: add devfs stubs 2024-02-12 18:56:57 -05:00
Michael Shaw
664e1ef2f1 vfs: add vfs_create and vfs_create_vno 2024-02-07 22:27:50 -05:00
Michael Shaw
66cb9b03ac ext2: replace bitmap search with intrinsic func 2024-02-01 00:31:19 -05:00
Michael Shaw
74c8c21425 vfs: add vfs_vnode_dec_ref 2024-01-31 20:26:48 -05:00
Michael Shaw
05486bbcc8 vfs: remove freed vnode references from dirents 2024-01-31 20:11:32 -05:00
Michael Shaw
82fca21452 ext2: copy dirents to fixed-size array 2024-01-31 20:06:51 -05:00
Michael Shaw
78c3474c10 ext2: remove unused ext2_read_vno 2024-01-31 20:02:28 -05:00
Michael Shaw
5217f9b199 vfs: remove hack from vfs_open 2024-01-30 22:42:35 -05:00
Michael Shaw
30774dd58a vfs: remove unused read_vno fs_ops function 2024-01-30 22:41:54 -05:00
Michael Shaw
a75cf5b5c6 vfs: clean up free logic and vfs_close 2024-01-30 22:38:33 -05:00
Michael Shaw
ef0a8674ae vfs: free vnodes when file is not found 2024-01-30 22:24:52 -05:00
Michael Shaw
a10509f1e5 lib: move lib headers into lib directory 2024-01-30 22:00:20 -05:00