projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comment.
[pintos-anon]
/
src
/
filesys
/
filesys.c
diff --git
a/src/filesys/filesys.c
b/src/filesys/filesys.c
index 05df4cef911ce96547c4b9377b8338095b810de7..440fc57eeada117c19007e480f69f25848ddad61 100644
(file)
--- a/
src/filesys/filesys.c
+++ b/
src/filesys/filesys.c
@@
-197,7
+197,8
@@
filesys_create (const char *name, off_t initial_size)
/* Opens a file named NAME and initializes FILE for usage with
the file_*() functions declared in file.h.
/* Opens a file named NAME and initializes FILE for usage with
the file_*() functions declared in file.h.
- Returns true if successful, false on failure.
+ Returns the new file if successful or a null pointer
+ otherwise.
Fails if no file named NAME exists,
or if an internal memory allocation fails. */
struct file *
Fails if no file named NAME exists,
or if an internal memory allocation fails. */
struct file *
@@
-241,7
+242,7
@@
filesys_remove (const char *name)
if (!dir_lookup (dir, name, &inode_sector))
goto done;
if (!dir_lookup (dir, name, &inode_sector))
goto done;
- /* Open the inode and delete it
it
. */
+ /* Open the inode and delete it. */
inode = inode_open (inode_sector);
if (inode == NULL)
goto done;
inode = inode_open (inode_sector);
if (inode == NULL)
goto done;