vfs: add vfs stubs

this also adds a small compatibility layer to the ext2 functions
This commit is contained in:
Michael Shaw 2023-10-19 01:03:27 -04:00
commit 5ebafca2e6
4 changed files with 108 additions and 11 deletions

View file

@ -1,2 +1,30 @@
/* SDPX-License-Identifier: GPL-2.0-only */
#include <fs/vfs.h>
#include <kernel/slab.h>
#include <kernel/block.h>
void vfs_init(struct block_device *root)
{
}
int write(int fd, const void *buf, size_t count)
{
return 0;
}
int read(int fd, void *buf, size_t count)
{
return 0;
}
int open(const char *pathname, int flags)
{
return 0;
}
int close(int fd)
{
return 0;
}