Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

Latest commit

 

History

History

lab5

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Walkthrough for lab 5 (Bigger files for XV6)

Download and build XV6 repo on the Linux cluster:

  • ssh [email protected]
  • cd private
  • mkdir lab4
  • cd lab4
  • git clone git://github.com/mit-pdos/xv6-public.git
  • cd xv6-public
  • make qemu-nox
  • Use Ctrl + A, and then X to exit

This lab is about adding a doubly-indirect block. After implementing this lab, new inode diagram will look like this:

XV6 new inode Diagram

Files you might want to have a look for this lab:

  • fs.c: static uint bmap(struct inode *ip, uint bn) (inode content)
  • fs.h: struct dinode (on-disk inode structure)
  • file.h: struct inode definition (in-memory inode structure)
  • big.c: Driver program for big files
  • Makefile

Note: Please visit Courseweb for a detailed version of lab instructions PDF file.