summaryrefslogtreecommitdiff
path: root/buf.h
diff options
context:
space:
mode:
authorrtm <rtm>2006-08-12 11:38:57 +0000
committerrtm <rtm>2006-08-12 11:38:57 +0000
commit4357207237e074b5a42ee9739eadd040fd1cf296 (patch)
tree1fe657b94bdfb412c02c6c4cec089f329d69df96 /buf.h
parent1f544842ceb5af73b1f2b13222d72dd4ad7cd08a (diff)
downloadxv6-labs-4357207237e074b5a42ee9739eadd040fd1cf296.tar.gz
xv6-labs-4357207237e074b5a42ee9739eadd040fd1cf296.tar.bz2
xv6-labs-4357207237e074b5a42ee9739eadd040fd1cf296.zip
fix getblk to actually lock the block
no more cons_put system calls usertests tests two processes writing files
Diffstat (limited to 'buf.h')
-rw-r--r--buf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/buf.h b/buf.h
index a4cea5e..e3f6b14 100644
--- a/buf.h
+++ b/buf.h
@@ -1,5 +1,7 @@
struct buf {
int flags;
+ uint dev;
+ uint sector;
uchar data[512];
};
#define B_BUSY 0x1