]> Devi Nivas Git - cs3210-lab1.git/commit
namei returns locked parent dir inode for create / unlink
authorrtm <rtm>
Sun, 13 Aug 2006 12:22:44 +0000 (12:22 +0000)
committerrtm <rtm>
Sun, 13 Aug 2006 12:22:44 +0000 (12:22 +0000)
commit211ff0c67ea6737853cf932313cf4e27cc15f55c
treee28f2e9f39ddc226203c16e955337216bbdab7f5
parentc372e8dc348e4bb30aae7642db92ecbeedbc83ab
namei returns locked parent dir inode for create / unlink
don't hold fd table lock across idecref() (latter does block i/o)
idecref calls iput() in case last ref -> freeing inode
dir size is 512 * # blocks, so readi/writei &c work
unlink deletes dirent even if ip->nlink > 0
Notes
defs.h
fd.c
fs.c
fsvar.h
syscall.c
usertests.c