From owner-freebsd-bugs Thu Jan 18 10:39:18 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from relay3.inwind.it (relay3.inwind.it [212.141.53.74]) by hub.freebsd.org (Postfix) with ESMTP id 63CE037B69B for ; Thu, 18 Jan 2001 10:39:00 -0800 (PST) Received: from bartequi.ottodomain.org (62.98.154.184) by relay3.inwind.it (5.1.056) id 3A40BF86005CDF97; Thu, 18 Jan 2001 19:37:57 +0100 From: Salvo Bartolotta Date: Thu, 18 Jan 2001 18:40:29 GMT Message-ID: <20010118.18402900@bartequi.ottodomain.org> Subject: Re: misc/24424: linux-programms under BSD cannot display all files in the directory To: Malte Sackmann , David Malone Cc: freebsd-bugs@FreeBSD.ORG References: <200101181250.f0ICo6i31737@freefall.freebsd.org> X-Mailer: SuperCalifragilis X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 1/18/01, 1:50:06 PM, Malte Sackmann wrote regarding Re: misc/24424: linux-programms under BSD cannot display all files in the directory: > The following reply was made to PR misc/24424; it has been noted by GNATS. > From: Malte Sackmann > To: David Malone > Cc: malte.sackmann@physik.uni-bremen.de, > freebsd-gnats-submit@FreeBSD.org > Subject: Re: misc/24424: linux-programms under BSD cannot display all files > in the directory > Date: Thu, 18 Jan 2001 13:32:58 +0100 (MET) > On Thu, 18 Jan 2001, David Malone wrote: > > On Thu, Jan 18, 2001 at 01:51:01AM -0800, malte.sackmann@physik.uni-bremen.de wrote: > > > Install a linux binary and open for example "/etc/*". > > > You will not see all existent files in that directory. > > > You will see always the same randomly chosen 8 files. > > > > You are probably seeing the contents of /compat/linux/etc because > > programs run under Linux compatability look for a version of the > > file/directory under /compat/linux before they look starting at /. > > > > David. > > > We have shortly discovered that the content from the /etc diretory > comes of course from /compat/linux/etc. No question. > But the problem with other directory contents is still the same!!!! > For example a mounted cdrom /cdrom with strongly missing directories > (some appeared, most disappeared) and files or various user/system > directories. Tested for example with linux netscape (from FreeBSD-4.1.1 > packages), acrobat4 . All programs show the same files/dirs or not. > We have done some debugging in the kernel source code (mainly > sys/i386/linux/linux_file.c) and have seen, that indeed the > getdents function only returns some of the entries of the specific > directory. But, from this already shrinked converted dir list (with > missing entries), additionaly some files/dirs lost "on the way" to the > user program and were never shown by the user program. > Very strange and serious problem. Dear Malte Sackmann and David Malone, I seem to understand that the problem is, as it were, somewhat cosmetic. The "features" described below might be relevant to your discussion. When I fire up eg StarOffice-5.X and I access various directories from its "open window" (absit iniuria verbis :-), I can only see **part** of their content(s). So far so good. However, if I specify an existing filename (or directory name) not shown in the tree by the dialog box, the name is completed, and it is also shown on the filename line (but NOT within the directory tree); besides -- wait for it -- I can **load** the file, or access the directory. Further, the above ahem "method" seems to recall these linux programs -- or rather the underlying filesystem facilities -- to a... sense of duty, and I can see much more directory content (if not all of it). Best regards & best of luck, Salvo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message