⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inode.h

📁 操作系统课程设计
💻 H
字号:
/* inode.h */

#ifndef _INODE_H
#define _INODE_H 0

#include "block.h"

#define TOTAL_INODES (BLOCK_SIZE*INODE_TABLE_BLOCKS/sizeof(struct fs_inode))
/* the INODE_OFFSET(x) implies boot + super contains in one block */
#define INODE_OFFSET(x) (BLOCK_SIZE + (x)*sizeof(struct fs_inode))

int get_ind(FILE *fp);

int free_ind( FILE *fp, int ind_no);

int update_ind( FILE *fp, int ind_no, struct fs_inode inode);

#endif	/* _INODE_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -