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
Explore this link on the map →saved by
related reading
- Assessment 1 Practiceweb.stanford.edu
- Process Control Syscalls | CS 162 Project 1cs162.org
- The "Basics" | Putting the "You" in CPUcpu.land
- Python's pathlib Module: Taming the File System – Real Pythonrealpython.com
- File System Accesswicg.github.io
- Linux File Hierarchy Structure - GeeksforGeeksgeeksforgeeks.org
- Things UNIX can do atomically — Crowley Code!rcrowley.org
- OS 202 Class Notescs.nyu.edu
- how I think when I think about programming - alice mazalicemaz.com
- Pipes | CS 162 HW 2cs162.org
- `find` + `mkdir` is Turing completeogiekako.vercel.app
- CS111 Assignment 1: Reading Unix V6 Filesystemsweb.stanford.edu