From nobody@FreeBSD.org  Thu Jan 18 01:51:01 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 0746437B6A0
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Jan 2001 01:51:01 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f0I9p1N03430;
	Thu, 18 Jan 2001 01:51:01 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200101180951.f0I9p1N03430@freefall.freebsd.org>
Date: Thu, 18 Jan 2001 01:51:01 -0800 (PST)
From: malte.sackmann@physik.uni-bremen.de
To: freebsd-gnats-submit@FreeBSD.org
Subject: linux-programms under BSD cannot display all files in the directory 
X-Send-Pr-Version: www-1.0

>Number:         24424
>Category:       misc
>Synopsis:       linux-programms under BSD cannot display all files in the directory
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 18 02:00:01 PST 2001
>Closed-Date:    Thu May 31 18:41:34 PDT 2001
>Last-Modified:  Thu May 31 18:42:00 PDT 2001
>Originator:     Malte Sackmann
>Release:        4.1.1 as well as 4.2
>Organization:
Institute of Experimental Physics
>Environment:
FreeBSD gradient.physik.uni-bremen.de 
4.1.1-RELEASE FreeBSD 4.1.1-RELEASE #0: 
Mon Nov 13 15:35:13 CET 2000     
sbosse@gradient.physik.uni-bremen.de:
/usr/src/sys/compile/MYKERNEL  i386


>Description:
Its not possible to lookup all files in an directory if using
a linux binary under xwindows.
>How-To-Repeat:
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.
Try it with acroread or scilab.
>Fix:


>Release-Note:
>Audit-Trail:

From: David Malone <dwmalone@maths.tcd.ie>
To: malte.sackmann@physik.uni-bremen.de
Cc: 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 11:15:59 +0000

 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.
 

From: Malte Sackmann <maltes@theo.physik.uni-bremen.de>
To: David Malone <dwmalone@maths.tcd.ie>
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.
 
 Bye,
 
 Malte & Stefan
 
 
 

From: "Mark W. Krentel" <krentel@dreamscape.com>
To: malte.sackmann@physik.uni-bremen.de
Cc: dwmalone@maths.tcd.ie, 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:14:01 -0500 (EST)

 > For example a mounted cdrom /cdrom with strongly missing directories
 > (some appeared, most disappeared) and files or various user/system
 > directories.
 
 I'm pretty sure this is the same problem reported in PR kern/19407.
 There was a bug in the Linuxulator that caused the linux readdir(3)
 to prematurely return NULL on non-UFS partitions.  Your Linux
 programs can correctly read Freebsd partitions, right?
 
 Marcel Moolenaar fixed the problem shortly before 4.2-Release.
 So, upgrade to 4.2 or later and see if that fixes the problem.
 
 --Mark
 

From: Kris Kennaway <kris@FreeBSD.ORG>
To: malte.sackmann@physik.uni-bremen.de
Cc: 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:17:28 -0800

 --M9NhX3UHpAaciwkO
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Thu, Jan 18, 2001 at 01:51:01AM -0800, malte.sackmann@physik.uni-bremen.=
 de wrote:
 
 > 4.1.1-RELEASE FreeBSD 4.1.1-RELEASE #0:=20
 
 ISTR this problem being fixed recently in -stable - can you confirm?
 
 Kris
 
 --
 NOTE: To fetch an updated copy of my GPG key which has not expired,
 finger kris@FreeBSD.org
 
 --M9NhX3UHpAaciwkO
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.4 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE6Z11oWry0BWjoQKURAkN1AJ9C2Li7B0fLPj9InsftrdgO3ReZGQCeOEEJ
 IVB7Ln++t1GQCVHdoubpaOI=
 =QDrb
 -----END PGP SIGNATURE-----
 
 --M9NhX3UHpAaciwkO--
 
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Thu May 31 18:41:34 PDT 2001 
State-Changed-Why:  
Problem appears to be fixed. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24424 
>Unformatted:
