Small changes
This commit is contained in:
parent
2062a2dff3
commit
a83fc6a45d
|
|
@ -26,6 +26,7 @@ void sysinit(){
|
|||
read_initrd(boot_info->initrd);
|
||||
modules_init();
|
||||
vfile_t *initrc = fopen("/boot/initrc.conf");
|
||||
mlog("RAE", "\033[1;32mDid you remember to migrate your modules to the new API?\033[0m\n", MLOG_PRINT);
|
||||
if(initrc){
|
||||
mlog("KERNEL", "Found initrc", MLOG_PRINT);
|
||||
initrc_read(initrc);
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ void ramfs_init(){
|
|||
root_dir.size = 4096;//one page is 4096 bytes
|
||||
}
|
||||
|
||||
void ramfs_create(char *path, FS_FILE_FLAGS flags){
|
||||
vfile_t *ramfs_create(char *path, FS_FILE_FLAGS flags){
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
#include <stdint.h>
|
||||
|
||||
void ramfs_init();
|
||||
void ramfs_create(char *path, FS_FILE_FLAGS flags);
|
||||
vfile_t *ramfs_create(char *path, FS_FILE_FLAGS flags);
|
||||
vfile_t *get_root_dir();
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
#include "vfs.h"
|
||||
#include "ramfs.h"
|
||||
#include "../shared/kstdlib.h"
|
||||
#include "../shared/memory.h"
|
||||
#include "../shared/string.h"
|
||||
|
|
@ -17,7 +18,7 @@ vfile_t *fcreate(char *path, FS_FILE_FLAGS flags){
|
|||
|
||||
vfile_t *vfcreate(vfile_t *parent_dir, char *relpath, FS_FILE_FLAGS flags){
|
||||
if(!relpath){
|
||||
return;
|
||||
return 0;
|
||||
}
|
||||
|
||||
char *name = kmalloc((strlen(relpath) + 4095)/4096);//don't make modifications to the original string
|
||||
|
|
|
|||
Loading…
Reference in New Issue