From owner-freebsd-emulation Mon Aug 14 14:18: 4 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from c1030098-a.wtrlo1.ia.home.com (c1030098-a.wtrlo1.ia.home.com [24.14.126.45]) by hub.freebsd.org (Postfix) with ESMTP id C047937B584 for ; Mon, 14 Aug 2000 14:17:59 -0700 (PDT) (envelope-from mdharnois@home.com) Received: (from mdharnois@localhost) by c1030098-a.wtrlo1.ia.home.com (8.9.3/8.9.3) id QAA07075; Mon, 14 Aug 2000 16:17:45 -0500 (CDT) (envelope-from mdharnois@home.com) X-Authentication-Warning: mharnois.workgroup.net: mdharnois set sender to mdharnois@home.com using -f To: "Artem Koutchine" Cc: Subject: Re: VMWare2 networking does not work (cannot access internet from vm) References: <005901bffcaf$29ec6da0$0c00a8c0@ipform.ru> From: Michael Harnois Date: 14 Aug 2000 16:17:40 -0500 In-Reply-To: "Artem Koutchine"'s message of "Wed, 2 Aug 2000 22:26:13 +0400" Message-ID: <86punbsft7.fsf@mharnois.workgroup.net> Lines: 16 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Carlsbad Caverns) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 2 Aug 2000 22:26:13 +0400, "Artem Koutchine" said: > I have big problem with VMWare accessing internet from virtual > machine. Me too. I have two ethernet cards in my machine, one with a real IP, connected to the cable modem, and one with an imaginary IP (192.168.0.1) connected to the LAN. All the machines on the LAN are working fine through natd but the VMware virtual machine does not. Also the bridge driver reports numerous loops. -- Michael D. Harnois, Redeemer Lutheran Church, Washburn, IA mdharnois@home.com aa0bt@aa0bt.ampr.org Perish discretion when it interferes with duty. -- Hannah More To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Aug 16 0:24:16 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from zork.sf-bay.org (zork.sf-bay.org [192.150.103.29]) by hub.freebsd.org (Postfix) with ESMTP id 56DA237B6EC for ; Wed, 16 Aug 2000 00:24:10 -0700 (PDT) (envelope-from scott@zorch.sf-bay.org) Received: (from uucp@localhost) by zork.sf-bay.org (8.9.3/8.9.3) with UUCP id AAA92297 for freebsd-emulation@freebsd.org; Wed, 16 Aug 2000 00:24:08 -0700 (PDT) (envelope-from scott@zorch.sf-bay.org) Received: (from scott@localhost) by zorba.sf-bay.org (8.9.3/8.8.8) id PAA40427 for freebsd-emulation@freebsd.org; Wed, 16 Aug 2000 15:23:55 +0800 (HKT) (envelope-from scott) Date: Wed, 16 Aug 2000 15:23:55 +0800 (HKT) From: Scott Hazen Mueller Message-Id: <200008160723.PAA40427@zorba.sf-bay.org> To: freebsd-emulation@freebsd.org Subject: Linuxulator, getdents and Citrix Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I did some research on the archives before I posted this and found only one thing, from December, that appeared relevant. If that fix has already been rolled in, it didn't fix this problem. Environment FreeBSD zorba.sf-bay.org 4.1-STABLE FreeBSD 4.1-STABLE #0: Mon Jul 31 17:34:56 HKT 2000 scott@zorba.sf-bay.org:/export/obj/export/src/sys/ZORBA i386 XFree86-4.0 X11R6.4/XFree86 core distribution citrix_ica-3.0.15 Citrix(R) client for the Microsoft Windows Terminal Server linux_base-6.1 The base set of packages needed in Linux mode linux_lib-2.6.1 These are the libraries necessary for linux compatibility. linuxthreads-2.1.2 POSIX pthreads implementation using rfork to generate kernel rpm-2.5.5 The Red Hat Package Manager System was installed with 'make buildworld; make installworld', so /modules is up-to-date. The problem occurs when running the Citrix ICA (ASP) client for Linux. The client operates correctly for the most part, allowing logins to the WinNT/ Citrix server system, displaying output correctly and the like. However, if I use the facility in the ICA client to export a UNIX directory into the NT environment, it doesn't work correctly. The mapped drive appears properly in the folder listing in Explorer, and if I poke around I find that it's deduced the correct amount of free space. If I create a directory using Folder->New in the Windows NT environment, the directory appears in the UNIX filesystem. What does not work is that I cannot see any of the UNIX files or directories in the exported directory, even the one I've just created. I ran truss against the ICA client. This is the snippet from around the attempt to access the UNIX directory: linux_ioctl(0x3,0x541b,0xbfbff084) = 3 (0x3) linux_ioctl(0x3,0x541b,0xbfbff084) = 3 (0x3) linux_select(0xbfbff668) = 1 (0x1) linux_select(0xbfbff92c) = 1 (0x1) linux_sigprocmask(0x0,0xbfbff934,0xbfbff930) = 3 (0x3) gettimeofday(0xbfbff924,0xbfbff91c) = 2 (0x2) linux_socketcall(0xa,0xbfbff830) = 2 (0x2) linux_newstat("/export/home/scott/",0xbfbff628) = 2 (0x2) linux_statfs(0x810dc88,0xbfbff5e8) = 2 (0x2) linux_open("/etc/mtab",0,0666) ERR#2 'No such file or directory' linux_newstat("/export/home/scott",0xbfbff54c) = 2 (0x2) linux_open("/export/home/scott",0,00) = 3 (0x3) linux_lseek(0x5,0x0,0x0) = 3 (0x3) linux_lseek(0x5,0x0,0x1) = 3 (0x3) linux_getdents(0x5,0x8133768,0x0) = 3 (0x3) close(5) = 1 (0x1) linux_socketcall(0x9,0xbfbff584) = 2 (0x2) linux_sigprocmask(0x2,0xbfbff928,0xbfbff924) = 3 (0x3) As nearly as I can tell, the linux_getdents call is returning a null result instead of a correct set of directory entries. The failed access to /etc/mtab seems irrelevant; I created a dummy mtab in an appropriate (Linux) format with no change in behavior. If this is a configuration problem, I'd certainly appreciate a pointer to the change needed. If this is indeed a bug, I'll be happy to test any patches. Thanks. \scott To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Aug 16 6: 2:42 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from gilgamesch.bik-gmbh.de (T1-Hansenet.BIK-GmbH.de [192.76.134.246]) by hub.freebsd.org (Postfix) with ESMTP id CD5CB37C28F for ; Wed, 16 Aug 2000 06:02:37 -0700 (PDT) (envelope-from cracauer@gilgamesch.bik-gmbh.de) Received: (from cracauer@localhost) by gilgamesch.bik-gmbh.de (8.9.3/8.7.3) id PAA25875; Wed, 16 Aug 2000 15:01:43 +0200 (MET DST) Date: Wed, 16 Aug 2000 15:01:43 +0200 From: Martin Cracauer To: Alexander Langer Cc: Dag-Erling Smorgrav , emulation@FreeBSD.ORG Subject: Re: linux.sh should mount linprocfs Message-ID: <20000816150143.A25568@cons.org> References: <20000717164744.A21201@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000717164744.A21201@cichlids.cichlids.com>; from alex@big.endian.de on Mon, Jul 17, 2000 at 04:47:44PM +0200 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In <20000717164744.A21201@cichlids.cichlids.com>, Alexander Langer wrote: > Thus spake Dag-Erling Smorgrav (des@flood.ping.uio.no): > > > +if [ -z $(kldstat -v | grep 'linprocfs') ] ; then > > + kldstat linprocfs > ^^^^ kldload? > > That should be an additional option, though (for rc.conf), such as > linux_procfs_enable="yes" # mount linuxprocfs, if linux_enable is set > > and a param to linux.sh, such as -p (for procfs) I think it might be better to have an entry in /etc/fstab for linprocfs, which is ignored by normal startup, but used by linux.sh Sounds like the smallest surprise to the user. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ BSD User Group Hamburg, Germany http://www.bsdhh.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Aug 16 15:57:20 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id 9864737B650 for ; Wed, 16 Aug 2000 15:57:14 -0700 (PDT) (envelope-from marcel@cup.hp.com) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel3.hp.com (Postfix) with ESMTP id 792CB981; Wed, 16 Aug 2000 15:57:09 -0700 (PDT) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id PAA12223; Wed, 16 Aug 2000 15:57:09 -0700 (PDT) Message-ID: <399B1C45.3B9AA9C@cup.hp.com> Date: Wed, 16 Aug 2000 15:57:09 -0700 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Scott Hazen Mueller Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: Linuxulator, getdents and Citrix References: <200008160723.PAA40427@zorba.sf-bay.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Scott Hazen Mueller wrote: > > linux_base-6.1 The base set of packages needed in Linux mode > linux_lib-2.6.1 These are the libraries necessary for linux compatibility. linux_base is a *replacement* for linux_lib. I suggest removing linux_lib *unless* you have a specific reason for it being installed. Let me know if that improves things. -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Aug 17 23: 5:58 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from io.dreamscape.com (io.dreamscape.com [206.64.128.6]) by hub.freebsd.org (Postfix) with ESMTP id 22B5037B724 for ; Thu, 17 Aug 2000 23:05:52 -0700 (PDT) Received: from dreamscape.com (sA15-p48.dreamscape.com [209.217.195.111]) by io.dreamscape.com (8.9.3/8.8.4) with ESMTP id CAA02804; Fri, 18 Aug 2000 02:02:39 -0400 (EDT) X-Dreamscape-Track-A: sA15-p48.dreamscape.com [209.217.195.111] X-Dreamscape-Track-B: Fri, 18 Aug 2000 02:02:39 -0400 (EDT) Received: (from krentel@localhost) by dreamscape.com (8.9.3/8.9.3) id CAA04991; Fri, 18 Aug 2000 02:04:18 -0400 (EDT) (envelope-from krentel) Date: Fri, 18 Aug 2000 02:04:18 -0400 (EDT) From: "Mark W. Krentel" Message-Id: <200008180604.CAA04991@dreamscape.com> To: scott@zorch.sf-bay.org Subject: Re: Linuxulator, getdents and Citrix Cc: freebsd-emulation@FreeBSD.ORG, marcel@cup.hp.com Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > As nearly as I can tell, the linux_getdents call is returning a null result > instead of a correct set of directory entries. I have also seen a problem with the Linux ls, readdir and getdents when reading non-ufs partitions. Take a look at PR kern/19407. It started with a panic when running Linux binaries from an ext2 partition. Bruce Evans found and fixed some buffer overruns in the ext2fs code. But I must have found two separate problems because I'm still seeing a problem with readdir. The remaining problem is that the Linux readdir(3) prematurely returns NULL on non-ufs partitions, and hence ls outputs too few files. Are your directories on ext2 or NFS partitions? Does it make a difference if you move them to a local ufs partition? For me, readdir correctly reads ufs directories, but fails on ext2 and cdrom. I haven't tried NFS yet. I'd be very interested in your results of these experiments. Below are two simple programs to list a directory, using readdir(3) and getdents(2). Compile the programs in Linux and run them in the Linuxulator on various directories. For me, getdents returns the right answer with any buffer size, but readdir prematurely returns NULL. I can send you uuencoded binaries, if you don't have access to a Linux machine. --Mark -------------------------------------------- /* * List directory contents with opendir and readdir. * Basically the same as "ls -1af". * Usage: readdir directory */ #include #include #include void my_err(char *mesg) { printf("Error: %s\n", mesg); exit(1); } int main(int argc, char **argv) { DIR *dp; struct dirent *de; int n; if (argc < 2) my_err("missing directory"); if ((dp = opendir(argv[1])) == NULL) my_err("unable to open directory"); n = 0; while ((de = readdir(dp)) != NULL) { printf("%s\n", de->d_name); n++; } printf("Total: %d files\n", n); return 0; } -------------------------------------------- /* * Print directory contents with getdents. * Usage: getdents directory [ buffer-size ] */ #include #include #include #include #include #include #include #include #define MAX_BUF_SIZE 100000 #define DEF_BUF_SIZE 90000 #define DEF_MAGIC 0x0f _syscall3(int, getdents, uint, fd, struct dirent *, dirp, uint, count); void my_err(char *mesg) { printf("Error: %s\n", mesg); exit(1); } int main(int argc, char **argv) { char area[MAX_BUF_SIZE]; struct { int inode; int offset; short len; char d_name[4]; } *dep; int used, size, magic; int num_calls, num_files; int max_touch, touch; int pos, fd, i; /* * Open directory and set fd. */ if (argc < 2) my_err("missing directory"); if ((fd = open(argv[1], O_RDONLY)) == -1) my_err("unable to open directory"); /* * Set buffer size. */ if (argc < 3) size = DEF_BUF_SIZE; else if (sscanf(argv[2], "%d", &size) != 1) my_err("unable to scanf buffer size"); if (size > MAX_BUF_SIZE) my_err("buffer size too large"); /* * Main loop: call getdents until returns 0. */ magic = DEF_MAGIC; num_calls = 0; num_files = 0; max_touch = 0; for (i = 0; i < MAX_BUF_SIZE; i++) area[i] = magic; while ((used = getdents(fd, (struct dirent *) area, size)) > 0) { num_calls++; touch = 0; for (i = size; i < MAX_BUF_SIZE; i++) { if (area[i] != magic) touch = i; } if (touch > max_touch) max_touch = touch; printf("\nCall: %d Used: %d Size: %d Touch: %d\n", num_calls, used, size, touch); pos = 0; while (pos < used) { num_files++; dep = (void *) (area + pos); printf("%s ", dep->d_name); pos += dep->len; } printf("\n"); for (i = 0; i < MAX_BUF_SIZE; i++) area[i] = magic; } printf("\nCalls: %d Files: %d Touch: %d\n", num_calls, num_files, max_touch); return 0; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Aug 18 0: 6:17 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from zork.sf-bay.org (zork.sf-bay.org [192.150.103.29]) by hub.freebsd.org (Postfix) with ESMTP id 5F6E437B446 for ; Fri, 18 Aug 2000 00:06:14 -0700 (PDT) Received: (from uucp@localhost) by zork.sf-bay.org (8.9.3/8.9.3) with UUCP id AAA04901; Fri, 18 Aug 2000 00:06:10 -0700 (PDT) (envelope-from scott@zorch.sf-bay.org) Received: (from scott@localhost) by zorba.sf-bay.org (8.9.3/8.8.8) id PAA38557 for krentel@dreamscape.com; Fri, 18 Aug 2000 15:04:16 +0800 (HKT) (envelope-from scott) Date: Fri, 18 Aug 2000 15:04:16 +0800 (HKT) From: Scott Hazen Mueller Message-Id: <200008180704.PAA38557@zorba.sf-bay.org> Subject: Re: Linuxulator, getdents and Citrix To: krentel@dreamscape.com, freebsd-emulation@FreeBSD.ORG X-Envelope-To: krentel@dreamscape.com Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >The remaining problem is that the Linux readdir(3) prematurely returns NULL >on non-ufs partitions, and hence ls outputs too few files. Are your >directories on ext2 or NFS partitions? Does it make a difference if you move >them to a local ufs partition? UFS partitions. I don't have any ext2 or NFS partitions on this system. >I'd be very interested in your results of these experiments. Below are two >simple programs to list a directory, using readdir(3) and getdents(2). They both seem to run fine - they report the correct # of entries and the numbers are the same between both. t1: libc.so.6 => /lib/libc.so.6 (0x2805e000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x28049000) t2: libc.so.6 => /lib/libc.so.6 (0x2805e000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x28049000) Curiously, the libc entry for the wfica (ICA Client) binary is fairly different: /usr/local/lib/ICAClient/wfica: libXaw.so.6 => /usr/i486-linux-libc5/lib/libXaw.so.6 (0x280a5000) libXt.so.6 => /usr/i486-linux-libc5/lib/libXt.so.6 (0x280da000) libX11.so.6 => /usr/i486-linux-libc5/lib/libX11.so.6 (0x28118000) libc.so.5 => /usr/i486-linux-libc5/lib/libc.so.5 (0x281aa000) libXmu.so.6 => /usr/i486-linux-libc5/lib/libXmu.so.6 (0x28273000) libSM.so.6 => /usr/i486-linux-libc5/lib/libSM.so.6 (0x28284000) libICE.so.6 => /usr/i486-linux-libc5/lib/libICE.so.6 (0x2828c000) libXext.so.6 => /usr/i486-linux-libc5/lib/libXext.so.6 (0x282a0000) I have no idea if that signifies anything. The local Linux box here has got the same sort of libc version numbers as my Linuxulator does. \scott To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Aug 18 10: 2:12 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (Postfix) with ESMTP id 37D8737B424 for ; Fri, 18 Aug 2000 10:02:07 -0700 (PDT) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel1.hp.com (Postfix) with ESMTP id 2FA6E91F; Fri, 18 Aug 2000 10:00:53 -0700 (PDT) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id KAA22653; Fri, 18 Aug 2000 10:00:41 -0700 (PDT) Message-ID: <399D6BB9.54616F0C@cup.hp.com> Date: Fri, 18 Aug 2000 10:00:41 -0700 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Scott Hazen Mueller Cc: krentel@dreamscape.com, freebsd-emulation@FreeBSD.ORG Subject: Re: Linuxulator, getdents and Citrix References: <200008180704.PAA38557@zorba.sf-bay.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Scott Hazen Mueller wrote: > > Curiously, the libc entry for the wfica (ICA Client) binary is fairly > different: > > /usr/local/lib/ICAClient/wfica: > libc.so.5 => /usr/i486-linux-libc5/lib/libc.so.5 (0x281aa000) > > I have no idea if that signifies anything. The local Linux box here has got > the same sort of libc version numbers as my Linuxulator does. I think it's significant. You and Mark might be discussing different bugs. Keep me posted; I'll get to it eventually. -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Aug 19 7:27:29 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from chmls06.mediaone.net (chmls06.mediaone.net [24.147.1.144]) by hub.freebsd.org (Postfix) with ESMTP id D3FD437B42C for ; Sat, 19 Aug 2000 07:27:26 -0700 (PDT) Received: from ahp3 (ahp.ne.mediaone.net [24.128.184.250]) by chmls06.mediaone.net (8.8.7/8.8.7) with SMTP id KAA16644 for ; Sat, 19 Aug 2000 10:27:25 -0400 (EDT) From: "Allen Pulsifer" To: Subject: Linux JRE v1.1.8 Date: Sat, 19 Aug 2000 10:27:26 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Has anyone gotten the Linux JRE v1.1.8 running under FreeBSD? It seems to be required to run the latest version of Oracle 8i. The Linux JRE causes the error message "sigaltstack: Cannot allocate memory" and hundreds of "kernel trap 9 with interrupts disabled" on the console. This is the same error reported by Andrew Gallatin to freebsd-emulation on Feb 7 http://docs.freebsd.org/cgi/getmsg.cgi?fetch=161526+0+archive/2000/freebsd-emulation/20000220.freebsd-emulation Thanks, Allen The stumbling point seems to be the It comes with JRE v1.1.8 for Linux, which wouldn't run under FBSD 4.2, but I got it to run by substituting the JRE for FBSD. Now the installer says there is a problem with the source repository. Any ideas? Allen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Aug 19 13: 5:56 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from io.dreamscape.com (io.dreamscape.com [206.64.128.6]) by hub.freebsd.org (Postfix) with ESMTP id 2060037B43C for ; Sat, 19 Aug 2000 13:05:54 -0700 (PDT) Received: from dreamscape.com (sA15-p35.dreamscape.com [209.217.195.98]) by io.dreamscape.com (8.9.3/8.8.4) with ESMTP id QAA24701; Sat, 19 Aug 2000 16:02:44 -0400 (EDT) X-Dreamscape-Track-A: sA15-p35.dreamscape.com [209.217.195.98] X-Dreamscape-Track-B: Sat, 19 Aug 2000 16:02:44 -0400 (EDT) Received: (from krentel@localhost) by dreamscape.com (8.9.3/8.9.3) id QAA03384; Sat, 19 Aug 2000 16:04:15 -0400 (EDT) (envelope-from krentel) Date: Sat, 19 Aug 2000 16:04:15 -0400 (EDT) From: "Mark W. Krentel" Message-Id: <200008192004.QAA03384@dreamscape.com> To: marcel@cup.hp.com Subject: Re: Linuxulator, getdents and Citrix Cc: freebsd-emulation@FreeBSD.ORG, scott@zorch.sf-bay.org Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I think it's significant. You and Mark might be discussing different > bugs. Keep me posted; I'll get to it eventually. Yes, they seem to be different. For me, the bug only happens with non-UFS partitions (ext2 or cdrom), which is not what Scott has. Everything works fine on UFS. I'll ask the general audience: (1) Does anyone else see this problem? Compile the readdir program from my previous mail in Linux, and run it in the Linuxulator on ext2 or cdrom partitions. (2) For me, linux_getdents(2) returns the right answer, but readdir(3) does not. That suggests the problem is in the Linux readdir(3) library, but I've looked at the source, and there doesn't appear to be anything wrong. Furthermore, I'm using RH 6.1 and linux_base_6.1 and they both have /lib/libc.so.6 -> libc-2.1.2.so and cmp reports the files are identical. So, I'm kinda stumped on where to look next. Any suggestions? --Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Aug 19 14:30:33 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from prism.flugsvamp.com (cb58709-a.mdsn1.wi.home.com [24.17.241.9]) by hub.freebsd.org (Postfix) with ESMTP id 6510E37B422 for ; Sat, 19 Aug 2000 14:30:30 -0700 (PDT) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.9.3/8.9.3) id QAA83919; Sat, 19 Aug 2000 16:36:15 -0500 (CDT) (envelope-from jlemon) Date: Sat, 19 Aug 2000 16:36:15 -0500 (CDT) From: Jonathan Lemon Message-Id: <200008192136.QAA83919@prism.flugsvamp.com> To: krentel@dreamscape.com, emulation@freebsd.org Subject: Re: Linuxulator, getdents and Citrix X-Newsgroups: local.mail.freebsd-emulation In-Reply-To: Organization: Cc: Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In article you write: >> I think it's significant. You and Mark might be discussing different >> bugs. Keep me posted; I'll get to it eventually. > >Yes, they seem to be different. For me, the bug only happens with >non-UFS partitions (ext2 or cdrom), which is not what Scott has. >Everything works fine on UFS. > >I'll ask the general audience: > >(1) Does anyone else see this problem? Compile the readdir program >from my previous mail in Linux, and run it in the Linuxulator on ext2 >or cdrom partitions. > >(2) For me, linux_getdents(2) returns the right answer, but readdir(3) >does not. That suggests the problem is in the Linux readdir(3) >library, but I've looked at the source, and there doesn't appear to be >anything wrong. Furthermore, I'm using RH 6.1 and linux_base_6.1 and >they both have /lib/libc.so.6 -> libc-2.1.2.so and cmp reports the >files are identical. So, I'm kinda stumped on where to look next. >Any suggestions? There's definitely a bug in the linux emulator somewhere. I have booted a FreeBSD kernel on top of a RedSplat system, (e.g.: everything on the system is Linux except the kernel) and the the Linux `ls' is doing really weird things. What I see is something like only the first couple of directory entries are being returned. Searching for other entries may or may not succeed. Doing a `ls -l' seems to work a little better, but not always. Sometimes you can access a directory entry that doesn't show up in ls. I have other bugs I'm working on, but I'll get to this one eventually if nobody else does. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Aug 19 22:33:29 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from io.dreamscape.com (io.dreamscape.com [206.64.128.6]) by hub.freebsd.org (Postfix) with ESMTP id 868FA37B42C for ; Sat, 19 Aug 2000 22:33:27 -0700 (PDT) Received: from dreamscape.com (sA16-p57.dreamscape.com [209.217.195.184]) by io.dreamscape.com (8.9.3/8.8.4) with ESMTP id BAA25170; Sun, 20 Aug 2000 01:31:44 -0400 (EDT) X-Dreamscape-Track-A: sA16-p57.dreamscape.com [209.217.195.184] X-Dreamscape-Track-B: Sun, 20 Aug 2000 01:31:44 -0400 (EDT) Received: (from krentel@localhost) by dreamscape.com (8.9.3/8.9.3) id BAA00586; Sun, 20 Aug 2000 01:33:23 -0400 (EDT) (envelope-from krentel) Date: Sun, 20 Aug 2000 01:33:23 -0400 (EDT) From: "Mark W. Krentel" Message-Id: <200008200533.BAA00586@dreamscape.com> To: jlemon@flugsvamp.com Subject: Re: Linuxulator, getdents and Citrix Cc: freebsd-emulation@freebsd.org Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > There's definitely a bug in the linux emulator somewhere. I have booted > a FreeBSD kernel on top of a RedSplat system, (e.g.: everything on the > system is Linux except the kernel) and the the Linux `ls' is doing really > weird things. You're more daring than I am. Anyway, since you're using ext2 partitions, you should probably look at Bruce Evans's patches in PR kern/19407. > What I see is something like only the first couple of directory entries > are being returned. Searching for other entries may or may not succeed. Sounds exactly like the bug I'm seeing. Try the simple readdir program (opendir followed by a loop of readdir until NULL). For me, the bug is somewhere between getdents(2) (which works) and readdir(3) (which doesn't). --Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message