From owner-freebsd-emulation@FreeBSD.ORG Fri Apr 13 09:50:32 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 91ED916A401 for ; Fri, 13 Apr 2007 09:50:32 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 2382813C483 for ; Fri, 13 Apr 2007 09:50:32 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5C6CC.dip0.t-ipconnect.de [84.165.198.204]) by redbull.bpaserver.net (Postfix) with ESMTP id 6E76F2E14E; Fri, 13 Apr 2007 11:50:23 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 5D2FC5B4882; Fri, 13 Apr 2007 11:50:20 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l3D9oKbg004978; Fri, 13 Apr 2007 11:50:20 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 13 Apr 2007 11:50:20 +0200 Message-ID: <20070413115020.n7c4si43k0kcsgok@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 13 Apr 2007 11:50:20 +0200 From: Alexander Leidinger To: rick-freebsd@kiwi-computer.com References: <20070412152642.76pd6vw0000sk88g@webmail.leidinger.net> <200704121428.l3CESbOw076122@lurza.secnetix.de> <20070412155100.GA92079@keira.kiwi-computer.com> In-Reply-To: <20070412155100.GA92079@keira.kiwi-computer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: Printing with Acrobat Reader 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: Fri, 13 Apr 2007 09:50:32 -0000 Quoting "Rick C. Petty" (from Thu, 12 =20 Apr 2007 10:51:01 -0500): > [cc: line snipped] > > On Thu, Apr 12, 2007 at 04:28:37PM +0200, Oliver Fromme wrote: >> >> Alexander Leidinger wrote: >> > Oliver Fromme wrote: >> > > That's correct. Obviously Adobe Reader performs some kind >> > > of sanity check on the path (if one is given), and for some >> > > reason it always prepends /compat/linux in that case. >> > >> > No linux application does this, it's the kernel. It tries with the >> > compat path first and then with the normal path. I don't know why it >> > does not work in acroread, I never investigated this issue. An >> > application should not be able to know if the command is from compat >> > or not. >> >> Adobe Reader does. Dont ask me how and why, but it does. >> Any other explanation of the symptom is even less likely. > > I get the sense that Acroread does something like the following: > > opendir("/usr/bin") --> maps to /compat because /usr/bin exists there > repeat: > =09readdir()=09--> still reading from /compat/linux/usr/bin > "lpr" not found in /usr/bin/ This can be checked with ktrace/linux_kdump, but I think you may be right. > I don't think our ABI layer checks for this kind of behavior. Because Right, it does not check for this. > /compat/linux/usr/bin was found, it doesn't try to look in /usr/bin. I've > seen this behavior in Acroread since version 7 and maybe even earlier, in > 6-STABLE so it's not due to recent linux ABI changes. Correct. > The ABI is performing similar to a unionfs but not quite, and maybe that's > the problem-- I think we want all writes to happen to the underlying > filesystem and all reads to check /compat first, but that may not be > trivial to implement at the VFS layer? I think I even tried using symlink= s > from /compat/linux/home to /home but the linux program sees: > /home --> /home Using symlinks will not work, as the directory where the links points =20 too is also tested with the /compat/linux prefix first. Bye, Alexander. --=20 [Prime Minister Joseph] Chamberlain loves the working man, he loves to see him work. =09=09-- Winston Churchill http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137