30 lines
525 B
C
30 lines
525 B
C
#ifndef SUPER_H_
|
|
#define SUPER_H_
|
|
|
|
#include "util.h"
|
|
#include "inode.h"
|
|
|
|
// fs attributes
|
|
#define MAGIC 0x7F631EC4
|
|
#define VERSION 0.0.0.1
|
|
#define BLOCKSIZE 4096
|
|
|
|
struct super_block {
|
|
// fs info
|
|
char version[8];
|
|
uint64_t magic;
|
|
// fs attributes
|
|
uint16_t blocksize;
|
|
uint64_t block_count;
|
|
uint64_t free_bloks;
|
|
uint64_t inode_count;
|
|
uint64_t free_inodes;
|
|
// Timestamps
|
|
tm fs_creation;
|
|
tm last_write;
|
|
|
|
// inode table
|
|
struct inode_table* inode_table;
|
|
};
|
|
|
|
#endif // SUPER_H_
|