Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Aug 2001 12:29:45 -0400 (EDT)
From:      Robert Watson <rwatson@freebsd.org>
To:        Michael Reifenberger <root@nihil.plaut.de>
Cc:        FreeBSD-Current <current@freebsd.org>
Subject:   Re: Linux ls fails on DEVFS /dev
Message-ID:  <Pine.NEB.3.96L.1010805122845.24868B-100000@fledge.watson.org>
In-Reply-To: <20010805104350.A1188-100000@nihil>

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

I reported this problem on the linprocfs and procfs modules a while back
while playing with a complete Linux environment under jail().  So clearly
we have a general problem among our synthetic file systems with regards to
the linux emulator (and possibly other emulators?)



Robert N M Watson             FreeBSD Core Team, TrustedBSD Project
robert@fledge.watson.org      NAI Labs, Safeport Network Services

On Sun, 5 Aug 2001, Michael Reifenberger wrote:

> Hi,
> linux ls fails on DEVFS /dev because linux_getdents fails because
> linux_getdents uses VOP_READDIR( ..., &ncookies, &cookies ) instead of
> VOP_READDIR( ..., NULL, NULL ) because it seems to need the offsets for
> linux_dirent and sizeof(dirent) != sizeof(linux_dirent)...
> 
> If I eliminate the usage of cookies, then a ls on at least
> a cd9660 mounted dir fails with not finding all direntries.
> 
> So the question is if all filesystems are expected to implement
> the cookies != NULL case?
> 
> BTW:
> Wy doesn't a call to fstat on a directory set a st_blksize != 0?
> Do directories have no preferred blocksize?
> I ask because getdents(2) explicitly states one
> should use stat(2) to get the minimum buffersize...
> 
> Bye!
> ----
> Michael Reifenberger
> ^.*Plaut.*$, IT, R/3 Basis, GPS
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" 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.1010805122845.24868B-100000>