Fsutil --mount can read and write files.

This commit is contained in:
Serge Vakulenko
2014-07-17 20:16:25 -07:00
parent 0cef044377
commit 08c79d7fec
5 changed files with 238 additions and 214 deletions

View File

@@ -193,8 +193,8 @@ void fs_directory_scan (fs_inode_t *inode, char *dirname,
void fs_dirent_pack (unsigned char *data, fs_dirent_t *dirent);
void fs_dirent_unpack (fs_dirent_t *dirent, unsigned char *data);
int fs_file_create (fs_t *fs, fs_file_t *file, char *name, int mode);
int fs_file_open (fs_t *fs, fs_file_t *file, char *name, int wflag);
int fs_file_create (fs_t *fs, fs_file_t *file, const char *name, int mode);
int fs_file_open (fs_t *fs, fs_file_t *file, const char *name, int wflag);
int fs_file_read (fs_file_t *file, unsigned char *data,
unsigned long bytes);
int fs_file_write (fs_file_t *file, unsigned char *data,