From owner-freebsd-emulation Wed Apr 25 6:35: 9 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 627F037B423 for ; Wed, 25 Apr 2001 06:35:07 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.3/8.11.3) with SMTP id f3PDZaf34255; Wed, 25 Apr 2001 09:35:36 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Wed, 25 Apr 2001 09:35:36 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Dag-Erling Smorgrav Cc: emulation@FreeBSD.ORG Subject: Re: linprocfs and jail(8) interactions with Linux readdir()/ls In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Another twist: as I mentioned, the Linux ls doesn't list the processes, but the FreeBSD ls (both in jail) does. The Linux ls getdents() appears to return different size data from the FreeBSD getdirentries(). This might be a formatting difference, or it could be that the Linux ABI wrapper is returning the short read for some reason: (/fbsdbin/ktrace /bin/ls /proc) curry# linux_kdump | grep dents 25580 ls CALL linux_getdents(0x3,0xbfbff5cc,0xdf) 25580 ls RET linux_getdents 212/0xd4 25580 ls CALL linux_getdents(0x3,0xbfbff5cc,0xdf) 25580 ls RET linux_getdents 0 (/fbsdbin/ktrace /fbsdbin/ls /proc) curry# kdump | & grep dirent 25586 ls CALL getdirentries(0x4,0x80cb000,0x1000,0x80c8054) 25586 ls RET getdirentries 260/0x104 25586 ls CALL getdirentries(0x4,0x80cb000,0x1000,0x80c8054) 25586 ls RET getdirentries 0 Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message