From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 19 08:54:09 2007 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D47516A417 for ; Wed, 19 Sep 2007 08:54:09 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id D3EE513C468 for ; Wed, 19 Sep 2007 08:54:07 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 704046679B8; Wed, 19 Sep 2007 10:54:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vmqJCUwyOhbu; Wed, 19 Sep 2007 10:54:05 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 6AFC866766A; Wed, 19 Sep 2007 10:54:05 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l8J8s5rh024568; Wed, 19 Sep 2007 10:54:05 +0200 (CEST) (envelope-from rdivacky) Date: Wed, 19 Sep 2007 10:54:05 +0200 From: Roman Divacky To: Boris Samorodov Message-ID: <20070919085405.GA24442@freebsd.org> References: <20070917152625.GA507@freebsd.org> <64815375@srv.sem.ipt.ru> <46EF62C5.5090704@gmail.com> <00483937@srv.sem.ipt.ru> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41596338@srv.sem.ipt.ru> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org, sam Subject: Re: linuxolator problem on i386 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2007 08:54:09 -0000 > It so happened that here we get a deal with magic (number). Let me > show you the broken behaviour one more time: > 14594 hlds_i686 CALL linux_getdents(0x6,0x8da5b44,0x1000) > 14594 hlds_i686 RET linux_getdents 4096/0x1000 > Look at the first linux_getdents() line. The third parameter (buffer > length?) equals to 0x1000 which is 4096. The second line with > linux_getdents shows that it has read precisely 4096 (bytes?). What if > we face here a (so called at our high school) border-case > (border-problem)? > > OK, the program reads the directory contents. Lets touch a new file > at this directory. What does happen? Follow me: > 14579 hlds_i686 CALL linux_getdents(0x6,0x8da574c,0x1000) > 14579 hlds_i686 RET linux_getdents 4084/0xff4 > That's it! > > Roman, I hope now you may create the needed patch. > As for me I'm too tied (and too proud :-) ) today and 'm going to have > a little sleep. I am sorry but I dont understand at all.. what are you trying to show? whats wrong with returning 4084?