Fix typo in dirlookup

This commit is contained in:
Grant Wu 2017-04-26 19:56:51 -07:00 committed by GitHub
parent 59cdd6c63b
commit 61f26e3c97

2
fs.c
View file

@ -518,7 +518,7 @@ dirlookup(struct inode *dp, char *name, uint *poff)
for(off = 0; off < dp->size; off += sizeof(de)){
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
panic("dirlink read");
panic("dirlookup read");
if(de.inum == 0)
continue;
if(namecmp(name, de.name) == 0){