- 1、本文档共26页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ch7 文件和文件系统结构
FILES AND FILE SYSTEM STRUCTURE
FILES AND FILE SYSTEM STRUCTURE
Objectives
LINUX
LINUX
LINUX
LINUX——
LINIUX
LINUX
LINUX
“~”“”“”“/”PATHcatmorecddirsecho
filelsmkdirpopdpwdrmdirypcat
7.1
Linux
Linux
Linux,
Linux
A simple file (text/executable)
A directory
A keyboard
A printer
A disk drive
A network interface card, etc..
7.2
Linux
Linux
255
shell
LINUX
(e.g. .c file extension is required by C
compilers)
”·””··”
7.3
Linux cont.
Linux cont.
LinuxUINX
i(inode)inode
“”
inodeinode
Linuxinode
7.4
Linux -Ext2
Linux -Ext2
/* Structure of a directory entry */
#define EXT2_NAME_LEN 255
/* The new version of the directory entry. Since EXT2 structures are stored in intel byte order, and
the name_len field could never be bigger than 255 chars, its safe to reclaim the extra byte for
the file_type field. */
struct ext2_dir_entry_2 {
__u32 inode; /* Inode number */
__u16 rec_len; /* Directory entry length */
__u8 name_len; /* Name length */
__u8 file_type;
char name[EXT2_NAME_LEN]; /* File name */
};
/* Ext2 directory file types. Only the low 3 bits are used. The other bits are reserved for now.*/
enum {
EXT2_FT_UNKNOWN,
EXT2_FT_REG_FILE,
EXT2_FT_DIR,
EXT2_FT
您可能关注的文档
- ADV3202_中文手册.pdf
- AIX卷管理.pdf
- aigo-60系列中文说明书-V1.0.pdf
- Altium DEMO 系列_ECAD与MCAD 交互.pdf
- AMD_M520处理器资料.ppt
- AMD45纳米5000+大战Intel酷睿三剑侠_IT168.pdf
- AMD低端失守400元酷睿2赛扬测试_IT168.pdf
- Altium Designer关于绕等长的方式和方法(From to)教程.pdf
- AMD移动系列.doc
- AMD桌面系列.doc
- 师缘主题课件最新完整版本.pptx
- 基于偏好MOEA_D算法的气发动机多目标优化标定研究.pdf
- 师范技能课件比赛一等奖最新完整版本.pptx
- 师范生初中美术说课课件最新完整版本.pptx
- 师范技能课件图片素材库最新完整版本.pptx
- Unit 2 Making a Difference Understanding ideas The Well that changed the world 教学设计-高中英语外研版(2019)必修第三册.docx
- 师范生技能大赛PPT课件语文最新完整版本.pptx
- 基于扭矩的双燃料发动机控制策略研究.pdf
- 1.2.1 等差数列的概念及其通项公式(教学设计)高二数学(北师大版2019选择性必修第二册).docx
- 师范文化课件最新完整版本.pptx
文档评论(0)