A first step in writing a dynamically created bootfs for boot images.

This commit is contained in:
Bahadir Balban
2008-01-16 01:37:24 +00:00
parent 6bb5b45212
commit c921197e69
7 changed files with 90 additions and 30 deletions

View File

@@ -48,7 +48,7 @@ struct superblock_ops {
struct dentry;
struct file;
struct filesystem;
struct file_system_type;
struct superblock;
struct vnode;
@@ -80,13 +80,16 @@ struct vnode {
unsigned long size; /* Total size of vnode in bytes */
};
struct filesystem {
unsigned long magic;
struct file_system_type {
char name[256];
unsigned long magic;
unsigned int flags;
struct superblock *(*get_sb)(void);
struct list_head sb_list;
};
struct superblock {
struct filesystem fs;
struct file_system_type fs;
struct superblock_ops ops;
struct dentry *root_dirent;
};