From 95450710a8b8290a110686d78c2357d3920bcda5 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Wed, 22 Oct 2014 14:06:04 +0200 Subject: working on filesys and readdir syscall --- fs/fs.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 fs/fs.h (limited to 'fs/fs.h') diff --git a/fs/fs.h b/fs/fs.h new file mode 100644 index 0000000..68675f0 --- /dev/null +++ b/fs/fs.h @@ -0,0 +1,19 @@ +#ifndef FOOLOS_FS +#define FOOLOS_FS + +enum FS_FILE_TYPE{ + + FS_FILE_TYPE_DIR = 1, + FS_FILE_TYPE_FILE = 2 +}; + +typedef struct fs_dirent_struct +{ + uint32_t inode; + uint32_t offset; + uint16_t length; + uint8_t type; + char name[256]; +}fs_dirent; + +#endif -- cgit v1.2.3