> For the complete documentation index, see [llms.txt](https://pkuflyingpig.gitbook.io/pintos/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pkuflyingpig.gitbook.io/pintos/project-description/optional-lab4-file-systems.md).

# (Optional) Lab4: File Systems

<mark style="color:red;background-color:red;">**Note: Lab 4 is not required for all the students**</mark><mark style="color:red;background-color:red;">.</mark>

**In the previous two assignments, you made extensive use of a file system without actually worrying about how it was implemented underneath.** For this last assignment, you will **improve the implementation of the file system**.

You will be working primarily in the `filesys/` directory.

**You may build project 4 on top of project 2 or project 3.**

* In either case, all of the functionality needed for project 2 must work in your filesys submission.
* If you build on project 3, then all of the project 3 functionality must work also, and you will need to edit `filesys/Make.vars` to **enable VM functionality**. You can receive up to 10% extra credit if you do enable VM.

**Here are the sections in this chapter:**

{% content-ref url="/pages/kxBcC6E6WQW17eD2pFi6" %}
[Background](/pintos/project-description/optional-lab4-file-systems/background.md)
{% endcontent-ref %}

{% content-ref url="/pages/CDJGaIMM1PQvpeHIp44J" %}
[Suggestions](/pintos/project-description/optional-lab4-file-systems/suggestions.md)
{% endcontent-ref %}

{% content-ref url="/pages/0LtYAzx0FI4qFrnuEv06" %}
[Your Tasks](/pintos/project-description/optional-lab4-file-systems/your-tasks.md)
{% endcontent-ref %}

{% content-ref url="/pages/wP7Ul5wq5DOuDRPOpH73" %}
[FAQ](/pintos/project-description/optional-lab4-file-systems/faq.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pkuflyingpig.gitbook.io/pintos/project-description/optional-lab4-file-systems.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
