Re: Linux ls fails on DEVFS /dev

2001-08-07 Thread Terry Lambert
Michael Reifenberger wrote: > 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 size

Re: Linux ls fails on DEVFS /dev

2001-08-05 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Robert Watson writes: > >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 emula

Re: Linux ls fails on DEVFS /dev

2001-08-05 Thread Robert Watson
FreeBSD Core Team, TrustedBSD Project [EMAIL PROTECTED] 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, &

Re: Linux ls fails on DEVFS /dev

2001-08-05 Thread Michael Reifenberger
On Sun, 5 Aug 2001, Poul-Henning Kamp wrote: ... > Open a PR so I don't forget and please include how I can reproduce it > while I test. Done. In the meantime a first (but yet untested) patch to devfs_vnops.c is attached. Bye! Michael Reifenberger ^.*Plaut.*$, IT, R/3 Basis, GPS --- devfs_

Re: Linux ls fails on DEVFS /dev

2001-08-05 Thread Poul-Henning Kamp
In message <20010805104350.A1188-10@nihil>, Michael Reifenberger writes: >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 see

Linux ls fails on DEVFS /dev

2001-08-05 Thread Michael Reifenberger
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 t