be clear what the root i-number is

This commit is contained in:
rtm 2008-10-08 18:57:13 +00:00
parent be38c8413e
commit 2ce40d7088
3 changed files with 3 additions and 2 deletions

2
fs.c
View file

@ -582,7 +582,7 @@ _namei(char *path, int parent, char *name)
struct inode *ip, *next;
if(*path == '/')
ip = iget(ROOTDEV, 1);
ip = iget(ROOTDEV, ROOTINO);
else
ip = idup(cp->cwd);