expand iounit to handle large images in /dev/draw

This commit is contained in:
Erik Quanstrom 2010-12-28 20:51:02 -05:00
parent f473ac462b
commit 31aac06d20
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ exportfs(int fd, int msgsz)
if(messagesize == 0){
messagesize = iounit(netfd);
if(messagesize == 0)
messagesize = 8192+IOHDRSZ;
messagesize = 8*8192+IOHDRSZ;
}
Workq = emallocz(sizeof(Fsrpc)*Nr_workbufs);

View File

@ -16,7 +16,7 @@ char Eversion[] = "Bad 9P2000 version";
int iounit(int x)
{
return 8192+IOHDRSZ;
return 8*8192+IOHDRSZ;
}
void*