sys_readdir and root vnode fixes.

Changes towards successfully filling dirent structures for sys_readdir
and creating a root vnode for the filesystem.
This commit is contained in:
Bahadir Balban
2008-04-12 17:57:45 +01:00
parent 5e0ec2db85
commit d7b06b5304
9 changed files with 138 additions and 52 deletions
+2 -1
View File
@@ -47,6 +47,7 @@
#define MEMFS_MAGIC 0xB
#define MEMFS_NAME "memfs"
#define MEMFS_NAME_SIZE 8
struct memfs_inode {
u32 inum; /* Inode number */
u32 mode; /* File permissions */
@@ -64,7 +65,7 @@ struct memfs_superblock {
u32 blocksize; /* Filesystem block size */
u64 fmaxblocks; /* Maximum number of blocks per file */
u64 fssize; /* Total size of filesystem */
struct memfs_inode *root; /* The root of this superblock */
unsigned long root_vnum; /* The root vnum of this superblock */
struct list_head inode_cache_list; /* Chain of alloc caches */
struct list_head block_cache_list; /* Chain of alloc caches */
struct id_pool *ipool; /* Index pool for inodes */