summaryrefslogtreecommitdiff
path: root/fs.c
AgeCommit message (Collapse)AuthorFilesLines
2007-08-28final nitsrsc1-3/+3
2007-08-28spaces around else for rtmrsc1-2/+1
2007-08-28more consistent spacingrsc1-18/+18
2007-08-28Change dev read/write functionsrsc1-2/+2
to take inode* instead of minor number. Unlock console inode during console_read and console_write. Otherwise background processes cannot write to console while the shell is reading it waiting for input.
2007-08-28nitrsc1-3/+3
2007-08-28No one is going to find this inode.rsc1-1/+1
There is only one ref to it -- the caller -- and no links to it.
2007-08-27delete unnecessary #include linesrsc1-3/+2
2007-08-27nitsrsc1-29/+23
2007-08-27tell what an inode isrsc1-4/+9
2007-08-27FS cleanup.rsc1-46/+52
Add utility routines bzero, readsb so that balloc, bfree fit on one page. Make balloc loop clearer.
2007-08-24shuffle for formattingrsc1-12/+18
2007-08-24first ever correct use of strncpyrsc1-22/+2
2007-08-24Remove struct uinode.rsc1-52/+42
Remove type arg to mknod (assume T_DEV).
2007-08-24nitsrsc1-1/+1
2007-08-24simplify ide queuingrtm1-9/+11
nits in comments
2007-08-24add missing iput() at end of _namei()rtm1-4/+6
2007-08-22tweaksrsc1-22/+18
2007-08-22PDF at http://am.lcs.mit.edu/~rsc/xv6.pdfrsc1-291/+120
Various changes made while offline. + bwrite sector argument is redundant; use b->sector. + reformatting of files for nicer PDF page breaks + distinguish between locked, unlocked inodes in type signatures + change FD_FILE to FD_INODE + move userinit (nee proc0init) to proc.c + move ROOTDEV to param.h + always parenthesize sizeof argument
2007-08-21remove namelen parameterrsc1-65/+81
2007-08-21Various cleanup:rsc1-105/+148
- Got rid of dummy proc[0]. Now proc[0] is init. - Added initcode.S to exec /init, so that /init is just a regular binary. - Moved exec out of sysfile to exec.c - Moved code dealing with fs guts (like struct inode) from sysfile.c to fs.c. Code dealing with system call arguments stays in sysfile.c - Refactored directory routines in fs.c; should be simpler. - Changed iget to return *unlocked* inode structure. This solves the lookup-then-use race in namei without introducing deadlocks. It also enabled getting rid of the dummy proc[0].
2007-08-20checkpoint - simpler namei interfacersc1-84/+86
2007-08-20shuffle fs.c in bottom-up orderrsc1-315/+313
2007-08-10various cleanupsrsc1-55/+42
2007-08-10Make cp a magic symbol.rsc1-6/+5
2007-08-09The final curproc[cpu()] is now cprsc1-4/+3
2007-08-09Clearer nameirsc1-69/+106
2007-08-08move ialloc body up, avoiding double check for end of looprsc1-11/+7
2007-08-08panic like bgetrsc1-1/+1
2007-08-08iincref returns new refrsc1-5/+5
2007-08-08fix . .. unlink bugrsc1-0/+6
2006-09-08some comment changeskaashoek1-1/+1
2006-09-08++rsc1-1/+1
2006-09-08fix various commentsrsc1-6/+0
2006-09-07allow long names againrsc1-8/+7
2006-09-07clean namei search looprsc1-22/+23
2006-09-07commentsrsc1-6/+60
2006-09-07remove _ prefixesrsc1-9/+9
2006-09-06wrap long linesrsc1-1/+2
2006-09-06for vs whilersc1-1/+1
2006-09-06break single-line if statementsrsc1-7/+14
2006-09-06no /* */ commentsrsc1-8/+6
2006-09-06standardize various * conventionsrsc1-86/+86
2006-09-06spacing fixes: no tabs, 2-space indents (for rtm)rsc1-13/+13
2006-08-30complain if no disk 1rtm1-25/+19
lots of cleanup
2006-08-29clear killed flag in exitrtm1-1/+1
idecref cwd in exit
2006-08-26consistently ignore more than 14 chars in path componentrtm1-1/+4
forbid create or write of existing directory mkdir("d1/d2/d3"), .. should refer to d2, not cwd mkdir increase parent link count
2006-08-25inode addrs[NDIRECT] -> NADDRSrtm1-13/+60
fix race in mknod / creat use last component in dirent in mknod, not path
2006-08-24big directory testrtm1-1/+4
2006-08-24fix bugs in indirect-file codekaashoek1-11/+10
clean up test program
2006-08-24user-level malloc (untested)kaashoek1-16/+70
nit in sbrk indirect block fix dup to share fd struct