Skip to content
Enhance xv6's file system with partitions and mounting
C C++ Assembly Makefile Shell Perl Other
Branch: master
Clone or download
Latest commit c920fda Jun 27, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.cvsignore update .cvsignore Oct 15, 2008
.dir-locals.el Setting indent-tabs-mode nil everywhere is dangerous Sep 5, 2011
.gdbinit.tmpl Use the symbol file Sep 21, 2009
.gitignore Sync up clean and gitignore better Sep 5, 2011
BUGS sh Sep 5, 2007
LICENSE Add MIT license file; update xv6-rev2.tar.gz with LICENSE. May 26, 2009
Makefile single image configuration Jun 27, 2016
Makefile2 single image configuration Jun 27, 2016
Notes
README update README; code cleanup Jun 22, 2016
TRICKS use acquire/release to force order for pid=np->pid;np->state=RUNNING Aug 4, 2014
asm.h add some comments Aug 6, 2010
bio.c Disentangle block size from the disk's sector size. Set block size to… Apr 3, 2015
bootasm.S comment nits Sep 12, 2011
bootmain.c Disentangle block size from the disk's sector size. Set block size to… Apr 3, 2015
buf.h Disentangle block size from the disk's sector size. Set block size to… Apr 3, 2015
cat.c more consistent spacing Aug 28, 2007
console.c nits Nov 15, 2015
cuth delete unnecessary #include lines Aug 27, 2007
date.h coding style (per Jeremías Feltan <jeremias.feltan@gmail.com>) Jun 30, 2015
defs.h fix ls+cd bugs Jun 27, 2016
dot-bochsrc make bochsrc work for bochs 2.2.6 Sep 3, 2008
echo.c Remove puts in favor of printf. Aug 24, 2007
elf.h Make elf proghdr fields match what objdump prints Aug 18, 2011
entry.S more regular kmap[] and description Sep 13, 2011
entryother.S Fix stale comments in entryother.S Sep 4, 2011
exec.c a start at concurrent FS system calls Aug 27, 2014
fcntl.h
file.c
file.h
forktest.c
fs.c fix ls+cd bugs Jun 27, 2016
fs.h started task 6, problem with cd .. Jun 22, 2016
gdbutil GDB utilities Nov 23, 2009
grep.c
ide.c task 6 still buggy Jun 22, 2016
init.c group locks into structs they protect. May 31, 2009
initcode.S Remove sys_init syscall Aug 23, 2011
ioapic.c trap cleanup Jul 12, 2009
kalloc.c eliminate enter_alloc -- use kalloc for everything Sep 13, 2011
kbd.c
kbd.h formatting; split kbd constants into kbd.h Aug 14, 2007
kernel.ld
kill.c Disentangle block size from the disk's sector size. Set block size to… Apr 3, 2015
lapic.c cmosgetdate() for system-call homework Sep 12, 2014
ln.c
log.c
ls.c Remove puts in favor of printf. Aug 24, 2007
main.c Pick up where i left off in april: Jun 27, 2015
mbr.h task 3 - mkfs.c supports partitions Jun 19, 2016
memide.c Update memide to reflect recent changes to fs and buf Jun 27, 2015
memlayout.h Fix comments Sep 18, 2015
mkdir.c more consistent spacing Aug 28, 2007
mkfs.c fix task 6 Jun 22, 2016
mmu.h
mount.c update README; code cleanup Jun 22, 2016
mp.c
mp.h Nice layout for a printout of the code Aug 29, 2014
param.h single image configuration Jun 27, 2016
picirq.c Get rid of the blank page in picirq.c. It misaligs things now. Sep 2, 2010
pipe.c Revert "Introduce and use sleeplocks instead of BUSY flags" Aug 29, 2011
pr.pl remove //DOC in the right place Jul 13, 2009
printf.c
printpcs Various fixes and improvements to printpcs Aug 24, 2012
proc.c task 3 done Jun 20, 2016
proc.h use acquire/release to force order for pid=np->pid;np->state=RUNNING Aug 4, 2014
rm.c more consistent spacing Aug 28, 2007
runoff no need to generate postscript version Aug 29, 2014
runoff.list Remove data.S from runoff, too Sep 2, 2011
runoff.spec Nice layout for a printout of the code Aug 29, 2014
runoff1 xv6: formatting, cleanup, rev5 (take 2) Feb 20, 2011
sh.c move jkstack to main.c Aug 5, 2010
show1 PDF at http://am.lcs.mit.edu/~rsc/xv6.pdf Aug 22, 2007
sign.pl
sleep1.p
spinlock.c Revert "Introduce and use sleeplocks instead of BUSY flags" Aug 29, 2011
spinlock.h
spinp Model verifying that wakeup really Oct 12, 2007
stat.h junk Aug 28, 2012
stressfs.c Update stressfs to trigger race now the logging code serializes writes Sep 27, 2011
string.c Use stosl in memset; makes boot time bearable Sep 1, 2011
swtch.S move jkstack to main.c Aug 5, 2010
symlink.patch
syscall.c created test for task 6, mount syscall is only skel Jun 21, 2016
syscall.h created test for task 6, mount syscall is only skel Jun 21, 2016
sysfile.c fix ls+cd bugs Jun 27, 2016
sysproc.c
timer.c shuffle and tweak for formatting. Aug 8, 2009
toc.ftr Update index example in TOC footer Sep 2, 2011
toc.hdr nits Aug 28, 2007
trap.c
trapasm.S
traps.h
types.h
uart.c shuffle and tweak for formatting. Aug 8, 2009
ulib.c
umalloc.c
user.h
usertests.c i think this is a working concurrent logging scheme Aug 28, 2014
usys.S
vectors.pl sync with c; .text is implied May 31, 2009
vm.c Nice layout for a printout of the code Aug 29, 2014
wc.c junk Aug 28, 2012
x86.h Remove unused x86.h definitions Sep 2, 2011
zombie.c delete unnecessary #include lines Aug 27, 2007

README

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
xv6 partitions


This project is part of an Operating Systems course taken in BGU. We introduce file system enhancements via adding support to partitions and mounting partitions to the boot partition.

For further information, consult the assignment description at https://www.cs.bgu.ac.il/~os162/Assignments/Assignment_4

The original README is left intact below.

Copyright 2016 Asaf Chelouche, Mordechai Craimer

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-

xv6 is a re-implementation of Dennis Ritchie's and Ken Thompson's Unix
Version 6 (v6).  xv6 loosely follows the structure and style of v6,
but is implemented for a modern x86-based multiprocessor using ANSI C.

ACKNOWLEDGMENTS

xv6 is inspired by John Lions's Commentary on UNIX 6th Edition (Peer
to Peer Communications; ISBN: 1-57398-013-7; 1st edition (June 14,
2000)). See also http://pdos.csail.mit.edu/6.828/2014/xv6.html, which
provides pointers to on-line resources for v6.

xv6 borrows code from the following sources:
    JOS (asm.h, elf.h, mmu.h, bootasm.S, ide.c, console.c, and others)
    Plan 9 (entryother.S, mp.h, mp.c, lapic.c)
    FreeBSD (ioapic.c)
    NetBSD (console.c)

The following people have made contributions:
    Russ Cox (context switching, locking)
    Cliff Frey (MP)
    Xiao Yu (MP)
    Nickolai Zeldovich
    Austin Clements

In addition, we are grateful for the bug reports and patches contributed by
Silas Boyd-Wickizer, Peter Froehlich, Shivam Handa, Anders Kaseorg, Eddie
Kohler, Yandong Mao, Hitoshi Mitake, Carmi Merimovich, Joel Nider, Greg Price,
Eldar Sehayek, Yongming Shen, Stephen Tu, and Zouchangwei.

The code in the files that constitute xv6 is
Copyright 2006-2014 Frans Kaashoek, Robert Morris, and Russ Cox.

ERROR REPORTS

If you spot errors or have suggestions for improvement, please send
email to Frans Kaashoek and Robert Morris (kaashoek,rtm@csail.mit.edu). 

BUILDING AND RUNNING XV6

To build xv6 on an x86 ELF machine (like Linux or FreeBSD), run "make".
On non-x86 or non-ELF machines (like OS X, even on x86), you will
need to install a cross-compiler gcc suite capable of producing x86 ELF
binaries.  See http://pdos.csail.mit.edu/6.828/2014/tools.html.
Then run "make TOOLPREFIX=i386-jos-elf-".

To run xv6, install the QEMU PC simulators.  To run in QEMU, run "make qemu".

To create a typeset version of the code, run "make xv6.pdf".  This
requires the "mpage" utility.  See http://www.mesa.nl/pub/mpage/.
You can’t perform that action at this time.