summaryrefslogtreecommitdiff
path: root/fs.c
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-28 19:39:49 +0000
committerrsc <rsc>2007-08-28 19:39:49 +0000
commitbf2932a6863e3af0226cd1635f7a404a475f5ad9 (patch)
tree406b33abdd0dc0a02d0cdc4386583dd3cccc2262 /fs.c
parent68a2d5373d4f7d37a263d13e013882b86232c482 (diff)
downloadxv6-labs-bf2932a6863e3af0226cd1635f7a404a475f5ad9.tar.gz
xv6-labs-bf2932a6863e3af0226cd1635f7a404a475f5ad9.tar.bz2
xv6-labs-bf2932a6863e3af0226cd1635f7a404a475f5ad9.zip
final nits
Diffstat (limited to 'fs.c')
-rw-r--r--fs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs.c b/fs.c
index f0ae0c5..24f6f75 100644
--- a/fs.c
+++ b/fs.c
@@ -574,9 +574,8 @@ skipelem(char *path, char *name)
}
// Look up and return the inode for a path name.
-// If parent is set, return the inode for the parent
-// and write the final path element to name, which
-// should have room for DIRSIZ bytes.
+// If parent != 0, return the inode for the parent and copy the final
+// path element into name, which must have room for DIRSIZ bytes.
static struct inode*
_namei(char *path, int parent, char *name)
{
@@ -618,6 +617,7 @@ namei(char *path)
char name[DIRSIZ];
return _namei(path, 0, name);
}
+
struct inode*
nameiparent(char *path, char *name)
{