Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2001 09:35:36 -0400 (EDT)
From:      Robert Watson <rwatson@FreeBSD.ORG>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        emulation@FreeBSD.ORG
Subject:   Re: linprocfs and jail(8) interactions with Linux readdir()/ls
Message-ID:  <Pine.NEB.3.96L.1010425093206.20794L-100000@fledge.watson.org>
In-Reply-To: <Pine.NEB.3.96L.1010425092043.20794K-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1010425093206.20794L-100000>