vfs: add vfs stubs
this also adds a small compatibility layer to the ext2 functions
This commit is contained in:
parent
e3efdde2df
commit
5ebafca2e6
4 changed files with 108 additions and 11 deletions
28
fs/vfs.c
28
fs/vfs.c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue