summaryrefslogtreecommitdiff
path: root/usertests.c
diff options
context:
space:
mode:
authorrtm <rtm>2006-08-13 12:22:44 +0000
committerrtm <rtm>2006-08-13 12:22:44 +0000
commit211ff0c67ea6737853cf932313cf4e27cc15f55c (patch)
treee28f2e9f39ddc226203c16e955337216bbdab7f5 /usertests.c
parentc372e8dc348e4bb30aae7642db92ecbeedbc83ab (diff)
downloadxv6-labs-211ff0c67ea6737853cf932313cf4e27cc15f55c.tar.gz
xv6-labs-211ff0c67ea6737853cf932313cf4e27cc15f55c.tar.bz2
xv6-labs-211ff0c67ea6737853cf932313cf4e27cc15f55c.zip
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
Diffstat (limited to 'usertests.c')
-rw-r--r--usertests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usertests.c b/usertests.c
index 2d6b065..c3e9113 100644
--- a/usertests.c
+++ b/usertests.c
@@ -231,7 +231,7 @@ void
createdelete()
{
int pid, i, fd;
- int n = 10; // for now, fit in one directory block
+ int n = 20;
char name[32];
pid = fork();