asuka2001 发表于 2013-12-13 14:56
回复 12# humjb_1983
1. 虽然 fs_struct->root与 fs_struct->rootmnt->mnt_root没有必然联系,但是一般 ...
struct path {
struct vfsmount *mnt;
struct dentry *dentry;
};
struct fs_struct {
int users;
spinlock_t lock;
seqcount_t seq;
int umask;
int in_exec;
struct path root, pwd;
};
asuka2001 发表于 2013-12-13 16:56
回复 14# humjb_1983
假设init进程开始时通过"root="传参挂载了/dev/sda1为根文件系统,/dev/sda1上的文 ...
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |