Commit graph vbos/fs
Author SHA1 Message Date
5da009c1a2 ramfs: increment missing inode refcount
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 14:15:46 +02:00
3b47b08a16 vfs: fix UAF in vfs_creat
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 14:13:15 +02:00
26a5953fde ramfs: remove locking from fs implementation layer
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 14:12:26 +02:00
3ae3729cdb inode: separate locking _ref functions
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 14:07:47 +02:00
b3fc520a18 ramfs: fix UAF in ramfs_create
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 01:54:32 +02:00
2a309d9671 ramfs: add inode number ticker
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-04 23:25:17 +02:00
e4122d1c65 vfs: add initial ramfs driver
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-04 22:56:39 +02:00
dec9b2c715 inode: fix overwritten refcount set
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-04 22:29:37 +02:00
0007d8cea3 vfs: add vfs_creat
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-04 22:21:37 +02:00
30c597c175 inode: add initial refcounts
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-04 22:20:22 +02:00
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