no. you should call writeInodeReq(). You can actually find a free inode
right away and return it, but the write to inode is through
writeInodeReq(), which is asynchronous.
Sit
"Yiu Fai Sit" <yf...@cs.utexas.edu> wrote in message
news:d54kh2$j59$1...@news.cs.utexas.edu...
"Yiu Fai Sit" <yf...@cs.utexas.edu> wrote in message
news:d54kh2$j59$1...@news.cs.utexas.edu...
For the need of reading in an inode, that depends on how you implement
iallocAsync. but as long as you do all the reads and write in an
asynchronous manner, that's fine.
Sit
Sit
Inodes can be in other blocks besides the first one.
1. bc.readAsync()
2. bd.read()
3. d.read() (which puts the event in the callbackmanager)
However, when the os is interrupted with these first 5 pages returning from
disk, no callBack method is called. How are we supposed to load the pages
into the bufferCache? I think I am still missing a huge piece here.
"Yiu Fai Sit" <yf...@cs.utexas.edu> wrote in message
news:d5qo82$o05$1...@news.cs.utexas.edu...
The OS does this for you (see OS.interrupt); it fills the MemPage (which
is in the buffer cache). Maybe you forgot to put the correct MemPage
into the OSEvent when you created it?