]> Devi Nivas Git - cs3210-lab0.git/commitdiff
final nits
authorrsc <rsc>
Tue, 28 Aug 2007 19:39:49 +0000 (19:39 +0000)
committerrsc <rsc>
Tue, 28 Aug 2007 19:39:49 +0000 (19:39 +0000)
fs.c
runoff.list

diff --git a/fs.c b/fs.c
index f0ae0c5dc53937adeafe7c54b1fe630316d33f5b..24f6f7537478aa1e7c4a6de0934e801d1f59ff23 100644 (file)
--- 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)
 {
index cbc8fca4c5a602c3baa618aa5a71f2b0f4d748fc..3f7c5f22268da091d062b6138217b80671cb6d83 100644 (file)
@@ -12,8 +12,6 @@ bootasm.S
 bootother.S
 bootmain.c
 main.c
-initcode.S
-init.c
 
 # locks
 spinlock.h
@@ -55,7 +53,7 @@ pipe.c
 # string operations
 string.c
 
-# low-level PC
+# low-level hardware
 mp.h
 mp.c
 lapic.c
@@ -67,14 +65,9 @@ console.c
 timer.c
 
 # user-level
+initcode.S
+init.c
 usys.S
 sh.c
 
 
-
-
-
-
-
-
-