vfs: add vfs_create and vfs_create_vno
This commit is contained in:
parent
dfb2827422
commit
664e1ef2f1
3 changed files with 54 additions and 25 deletions
|
|
@ -47,6 +47,7 @@
|
|||
#define O_APPEND 0x0020
|
||||
|
||||
#define FS_TYPE_EXT2 0x0001
|
||||
#define FS_TYPE_PFS 0x0002 /* pseudo fs */
|
||||
|
||||
typedef uint32_t ino_t;
|
||||
typedef uint8_t ftype_t;
|
||||
|
|
@ -154,6 +155,10 @@ int closedir(DIR *dir);
|
|||
char *basename(char *path);
|
||||
char *dirname(char *path);
|
||||
|
||||
struct fs *vfs_create();
|
||||
struct vnode *vfs_create_vno();
|
||||
void vfs_dealloc(struct fs *fs);
|
||||
|
||||
int stdout_write(struct file_descriptor *fdesc, void *buf, size_t len);
|
||||
|
||||
#endif /* _VFS_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue