Re: [Qemu-devel] [patch]Fix block device read for some SLOW file

2005-07-27 Thread Johannes Schindelin
Hi, On Wed, 27 Jul 2005, lepton wrote: > +while(1){ > + ret = read(s->fd, buf, nb_sectors * 512); > + if (ret != nb_sectors * 512) { > + if(ret==-1 && errno==EINTR) > + continue; > + else > + return -1; > + } > +

[Qemu-devel] [patch]Fix block device read for some SLOW file

2005-07-27 Thread lepton
Hi, I found when I am using qemu, I can't boot from emulated cdrom. After some debug, I found the reason is that my iso file is in a samba file system. When qemu read data from my samba file system. read will be interrupted by signal alarm. So qemu won't boot from it. The follwing patch will fix i