PCI IDE driver, new create_volume () syscall, test scripts
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m37s

This commit is contained in:
2026-03-10 18:14:18 +01:00
parent 01c51ac63f
commit 38557bab7d
24 changed files with 726 additions and 39 deletions

View File

@@ -3,6 +3,7 @@
#include <fs/fatfs.h>
#include <fs/tarfs.h>
#include <fs/vfs.h>
#include <fs_types.h>
#include <id/id_alloc.h>
#include <libk/fieldsizeof.h>
#include <libk/hash.h>
@@ -53,7 +54,7 @@ int vfs_create_volume (const char* key, int fs_type, struct device* back_device,
volume->lock = SPIN_LOCK_INIT;
switch (volume->fs_type) {
case VFS_TARFS:
case FS_TARFS:
volume->driver_ops.mount = &tarfs_mount;
volume->driver_ops.format = &tarfs_format;
volume->driver_ops.describe = &tarfs_describe;
@@ -64,7 +65,7 @@ int vfs_create_volume (const char* key, int fs_type, struct device* back_device,
volume->driver_ops.create_dir = &tarfs_create_dir;
volume->driver_ops.remove = &tarfs_remove;
break;
case VFS_FAT16:
case FS_FAT16:
volume->driver_ops.mount = &fatfs_mount;
volume->driver_ops.format = &fatfs16_format;
volume->driver_ops.describe = &fatfs_describe;
@@ -75,7 +76,7 @@ int vfs_create_volume (const char* key, int fs_type, struct device* back_device,
volume->driver_ops.create_dir = &fatfs_create_dir;
volume->driver_ops.remove = &fatfs_remove;
break;
case VFS_FAT32:
case FS_FAT32:
volume->driver_ops.mount = &fatfs_mount;
volume->driver_ops.format = &fatfs32_format;
volume->driver_ops.describe = &fatfs_describe;

View File

@@ -4,6 +4,7 @@
#include <desc.h>
#include <device/device.h>
#include <dir_entry.h>
#include <fs_types.h>
#include <libk/hash.h>
#include <libk/list.h>
#include <libk/rbtree.h>
@@ -17,10 +18,6 @@
#define VFS_KERNEL ((struct proc*)0x123)
#define VFS_TARFS 0
#define VFS_FAT16 1
#define VFS_FAT32 2
struct vfs_volume;
struct vfs_volume {