Skip to content
Snippets Groups Projects
Commit 0754d21c authored by Robert Morris's avatar Robert Morris
Browse files

stricter log consumption by write()

parent 1ab23170
No related merge requests found
......@@ -130,7 +130,7 @@ filewrite(struct file *f, char *addr, int n)
// and 2 blocks of slop for non-aligned writes.
// this really belongs lower down, since writei()
// might be writing a device like the console.
int max = ((LOGSIZE-1-1-2) / 2) * 512;
int max = ((MAXOPBLOCKS-1-1-2) / 2) * 512;
int i = 0;
while(i < n){
int n1 = n - i;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment