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

📄 types.h

📁 一个LINUX下一个框架文件系统,运行编译环境:RED HAT LINUX7.3
💻 H
字号:
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <fcntl.h>
#include <setjmp.h>
#include <netdb.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <netinet/in.h>

struct myfs_meta {
	uint64_t handle; /* similar to inode number, always valid */
	uint32_t valid; /* bitfield specifying what fields are valid */
	uint32_t mode; /* protection */
	uint32_t uid; /* user ID of owner */
	uint32_t gid; /* group ID of owner */
	uint64_t size; /* total size of file in bytes */
	time_t atime; /* time of last access (all times under one bit) */
	time_t mtime; /* time of last modification */
	time_t ctime; /* time of last change */
	uint64_t blksize; /* ``suggested'' block size (usually strip size) */
	uint64_t blocks; /* number of ``suggested'' blocks */
};

struct outmessage{
	int		type;		//look up == 1
	char	dirname[200];
};

struct inmessage{
	int		type;
	struct myfs_meta meta;
};

⌨️ 快捷键说明

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