Commit graph vbos/include/fs
Author SHA1 Message Date
7c8b46eeda vfs: add mount support
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-10 15:13:05 -04:00
898570d0ca vfs: add vfs_readdir
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-10 12:58:11 -04:00
733b9a7c47 vfs: add vfs_openat
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-10 12:18:04 -04:00
8d2cb24237 cpio: add initcpio loading
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-07 00:02:02 +02:00
94b7a9e342 vfs: add inode permission macros
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-06 20:07:41 +02:00
f9a94f76dc vfs: add FILE_NAME_MAX_LEN
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-06 19:48:09 +02:00
841c00fad1 inode: remove unused macros
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-06 19:43:55 +02:00
f24cd3ef74 vfs: add S_IFMT mask
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-06 19:41:08 +02:00
0d03ff47d4 cpio: pack struct cpio_newc_header
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-06 19:00:51 +02:00
8aa6b6a8b2 vfs: rename fs_umount to deinit
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 23:09:31 +02:00
78517526b1 fs: change fs_type to fs_driver
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 23:07:48 +02:00
7e4e70853e i_ops: change link and unlink to inode-tracking
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 20:06:27 +02:00
8c346a7018 vfs: rethink fs_type.fs_mount
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 20:00:09 +02:00
0c29f0e517 vfs: restructure vfs to reduce various errors
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 15:55:26 +02:00
eb41b17fea vfs: fix various logical errors in the vfs
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 15:18:34 +02:00
3ae3729cdb inode: separate locking _ref functions
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 14:07:47 +02:00
e4122d1c65 vfs: add initial ramfs driver
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-04 22:56:39 +02:00
2534c317f2 vfs: inode: add inode modes and filetypes
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-04 22:21:21 +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
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
30ffa8780e vfs: add vfs_create_file 2025-02-24 20:01:31 -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
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
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
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
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
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
30774dd58a vfs: remove unused read_vno fs_ops function 2024-01-30 22:41:54 -05:00
Michael Shaw
2c553ed124 vfs: remove horrible fd_special temporary hack 2024-01-30 22:34:29 -05:00
Michael Shaw
a10509f1e5 lib: move lib headers into lib directory 2024-01-30 22:00:20 -05:00
Michael Shaw
2f20777a47 fs: move directory parsing to vfs
Previously, the vfs heavily relied on the physical filesystem for
directory parsing, which limited capabilities to a single filesystem,
save letter-based indexing which will not be used.

Now, vnodes are parsed in the VFS, and only requested on-demand, greatly
reducing complexity and reliance on physical drivers for handling.

This temporarily removes the ability to create files with the current
drivers.
2024-01-30 18:54:59 -05:00
Michael Shaw
070af3aba0 fs: reorginize memory allocations and frees 2024-01-30 00:09:56 -05:00
Michael Shaw
aee65e1dd2 vfs: add new ext2 ops 2024-01-29 23:51:03 -05:00
Michael Shaw
d54aa794c5 ext2: mark root vnode no_free 2024-01-26 18:47:34 -05:00
Michael Shaw
d61edcbe7b ext2: use struct vnode instead of struct file 2024-01-26 18:41:09 -05:00
Michael Shaw
963a58cb53 fs: read root inode on fs init 2024-01-25 00:43:50 -05:00
Michael Shaw
e7434667b8 vfs: add vfs_mount 2024-01-24 22:00:47 -05:00
Michael Shaw
2e93013e12 vfs: add root vnode to fs struct 2024-01-24 20:10:49 -05:00
Michael Shaw
848c374d12 vfs: add type macros for directory entries 2024-01-24 20:09:27 -05:00