X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Ffilesys.texi;h=804c5a7344c2d8e8f695d8d8a1f0f93e68d50aa5;hb=c20a1ee4a5118c4861b33d39d5d0481eeff59283;hp=7628eb4856c08d77e1cfae35e65abbd68ccc8c06;hpb=5539377e713d0b7424a15547ca0242518e86ea9b;p=pintos-anon diff --git a/doc/filesys.texi b/doc/filesys.texi index 7628eb4..804c5a7 100644 --- a/doc/filesys.texi +++ b/doc/filesys.texi @@ -23,27 +23,7 @@ filesystem implementation. FIXME FIXME FIXME The first step is to understand the default filesystem provided by the -base code. The first things you should look at are -@file{threads/init.c} and @file{filesys/fsutil.c}: there are special -command line arguments to Pintos which are used to format and -manipulate the emulated disk. Specifically, @option{-f} formats the -file system disk for use with Pintos, and @option{-cp @var{src} -@var{dst}} copies @var{src} on the Unix filesystem to @var{dst} on the -file system disk. With this information, you should be able to -compile the base code and try out the command: @samp{pintos -f -cp -./small small} to copy the file @file{small} from your working -directory into the Pintos file system. - -FIXME FIXME FIXME -One thing you should realize immediately is that, until you use the -above operation to copy the shell (or whatever your initial program -is) to the emulated disk, Pintos will be unable to do very much useful -work (it'll try to open the shell and fail, thereby quitting out). You -will also find that you won't be able to do interesting things until -you copy a variety of programs to the disk. A useful technique, once -your inode formats are finalized, is to create a clean reference disk -and copy that over whenever you trash your disk beyond a useful state -(which will probably happen quite often while debugging). +base code. @menu * File System New Code::