expand iounit to handle large images in /dev/draw
This commit is contained in:
parent
f473ac462b
commit
31aac06d20
@ -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);
|
||||
|
@ -16,7 +16,7 @@ char Eversion[] = "Bad 9P2000 version";
|
||||
|
||||
int iounit(int x)
|
||||
{
|
||||
return 8192+IOHDRSZ;
|
||||
return 8*8192+IOHDRSZ;
|
||||
}
|
||||
|
||||
void*
|
||||
|
Loading…
Reference in New Issue
Block a user