We can now open and read files on the harddisk through a messy virtual filesystem
The uri has to contain 8.3 filenames for now as I have not yet figured out how to convert from that to regular filenaming for the name comparison. reading files is still limited to 1 sector
This commit is contained in:
@ -11,10 +11,10 @@
|
||||
|
||||
static int register_filesystem(struct filesystem* fs);
|
||||
|
||||
static struct file* open(const char* pathname, int flags);
|
||||
static int close(struct file* file);
|
||||
static int write(struct file* file, const void* buf, size_t len);
|
||||
static int read(struct file* file, void* buf, size_t len);
|
||||
static FILE* open(const char* pathname, int flags);
|
||||
static int close(struct FILE* file);
|
||||
static int write(struct FILE* file, const void* buf, unsigned int len);
|
||||
static int read(struct FILE* file, void* buf, unsigned int len);
|
||||
|
||||
private:
|
||||
static vfsmount* rootfs;
|
||||
@ -25,7 +25,7 @@
|
||||
static int filesystem_number;
|
||||
|
||||
static filesystem* filesystems[];
|
||||
static superblock* superblocks[];
|
||||
static FS_SUPER* superblocks[];
|
||||
static vfsmount* mounts[];
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user