Date: Wed, 19 Sep 2007 15:25:46 +0200 From: Roman Divacky <rdivacky@freebsd.org> To: Boris Samorodov <bsam@ipt.ru> Cc: freebsd-emulation@freebsd.org, sam <samflanker@gmail.com> Subject: Re: linuxolator problem on i386 Message-ID: <20070919132546.GA35553@freebsd.org> In-Reply-To: <75502368@srv.sem.ipt.ru> References: <46EF7E05.5040405@gmail.com> <20070918074332.GA30053@freebsd.org> <88000019@srv.sem.ipt.ru> <20070918082119.GA30932@freebsd.org> <89768331@srv.sem.ipt.ru> <41596338@srv.sem.ipt.ru> <20070919085405.GA24442@freebsd.org> <18395962@srv.sem.ipt.ru> <20070919111557.GA28377@freebsd.org> <75502368@srv.sem.ipt.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> > @@ -442,8 +443,7 @@ > > > off = fp->f_offset; > > > - buflen = max(LINUX_DIRBLKSIZ, nbytes); > > - buflen = min(buflen, MAXBSIZE); > > + buflen = max(buflen, MAXBSIZE); > > buf = malloc(buflen, M_TEMP, M_WAITOK); > > vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); > > No. It limits buflen to which is smaller, buflen or MAXBSIZE. yes... brain does not work real good today :( I wonder why the limitation is there.. can you try buflen = min(nbytes, MAXBSIZE); and/or changing while (len > 0) { to while (len >= 0)4 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070919132546.GA35553>