flâneur — a map of the web's best reading

Subdirectories | CS 162 Project 3

cs162.org · 1,173 words · saved by 1 readers

The current Pintos file system supports directories, but user programs have no way of using them (i.e. files can only be placed in the root directory right now). You must add the following system calls to allow user programs to manipulate directories: chdir, mkdir, readdir, isdir. You must also update the following system calls so that they work with directories: open, close, exec, remove, inumber. You must also add support for relative paths for any syscall with a file path argument. For example, if a process calls chdir("my_files/") and then open("notes.txt"), you should search for notes.txt relative to the current directory and open the file my_files/notes.txt. You also need to support absolute paths like open("/my_files/notes.txt"). You need to support the special "." and ".." names, when they appear in file path arguments, such as open("../logs/foo.txt"). Child processes should inherit the parent’s current working directory. The first user process should have the root directory as

Subdirectories | CS 162 Project 3 Skip to main content Menu Expand (external link) Document Search Copy Copied CS 162 Project 3 Subdirectories Table of contents Implementation details Syscall signatures chdir mkdir readdir isdir inumber The current Pintos file system supports directories, but user programs have no way of using them (i.e. files can only be placed in the root directory right now). You must add the following system calls to allow user programs to manipulate directories: chdir , mkdir , readdir , isdir . You must also update the following system calls so that they work with direct

Explore this link on the map →

saved by

related reading