diff options
| author | Miguel <m.i@gmx.at> | 2018-09-14 23:10:16 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-14 23:10:16 +0200 |
| commit | c4b20a0ebbde1348e1e085e2ea3be35345d92b7c (patch) | |
| tree | 611b68c1d288cace070152c628bb0e0e211bb500 /fs/fs.c | |
| parent | fdf6100721870780319bc7cc766a0bb5b4789965 (diff) | |
tuining userspace and files
Diffstat (limited to 'fs/fs.c')
| -rw-r--r-- | fs/fs.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/fs/fs.c b/fs/fs.c deleted file mode 100644 index a9cf5f6..0000000 --- a/fs/fs.c +++ /dev/null @@ -1,21 +0,0 @@ -#include "kernel/kernel.h" -// abstraction layer for filesystems - -#include "fs.h" -#include "ext2.h" - -// returns number of entries in the directory specified by name. -// fills 0-max into *dirs - -int fs_readdir(const char *name,fs_dirent *dirs,int max) -{ - int inode_nr=ext2_filename_to_inode(VMEM_EXT2_RAMIMAGE,name); - if(inode_nr<1)return -1; - return ext2_read_dir(VMEM_EXT2_RAMIMAGE, inode_nr,dirs,0); // TODO: hardcoded, fix this -} - -void fs_content(char *path, uint32_t dest, uint32_t max_bytes) -{ - int inode= ext2_filename_to_inode(VMEM_EXT2_RAMIMAGE, path); -// ext2_inode_content(VMEM_EXT2_RAMIMAGE,inode,dest,max_bytes); -} |
