CS计算机代考程序代写 #ifndef _SUPER_BLOCK_H_

#ifndef _SUPER_BLOCK_H_
#define _SUPER_BLOCK_H_

#define SB_OFFSET 1024
#define I_OFFSET 2048
#define D_OFFSET 10485760
#define MAX_INODE 100
#define MAX_DATA_BLK 256000
#define BLK_SIZE 4096

#define MAX_COMMAND_LENGTH 50
#define MAX_FILE_SIZE BLK_SIZE*1024

typedef struct _super_block_
{
int i_offset;
int d_offset;
int max_inode;
int max_data_blk;
int next_available_inode;
int next_available_blk;
int blk_size;
}superblock;

superblock* read_sb(int fd);
void print_sb_info(superblock* sb);
void print_sb_region(int fd);
#endif