Subdirectories | CS 162 Project 3
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
saved by
related reading
- Extensible filescs162.org
- Assessment 1 Practiceweb.stanford.edu
- Process Control Syscalls | CS 162 Project 1cs162.org
- Intro - Putting the "You" in CPUcpu.land
- Python's pathlib Module: Taming the File System – Real Pythonrealpython.com
- The "Basics" | Putting the "You" in CPUcpu.land
- File System Accesswicg.github.io
- Linux File Hierarchy Structure - GeeksforGeeksgeeksforgeeks.org
- Things UNIX can do atomically — Crowley Code!rcrowley.org
- window.showDirectoryPicker opens up a whole new worldsteveharrison.dev
- Pipes | CS 162 HW 2cs162.org
- OS 202 Class Notescs.nyu.edu