From owner-freebsd-current Sun Aug 5 2: 5:39 2001 Delivered-To: freebsd-current@freebsd.org Received: from ns.plaut.de (ns.plaut.de [194.99.75.166]) by hub.freebsd.org (Postfix) with ESMTP id E593637B401 for ; Sun, 5 Aug 2001 02:05:36 -0700 (PDT) (envelope-from root@nihil.plaut.de) Received: (from uucp@localhost) by ns.plaut.de (8.9.3/8.9.3) with UUCP id LAA02916 for current@freebsd.org; Sun, 5 Aug 2001 11:05:31 +0200 (CEST) (envelope-from root@nihil.plaut.de) Received: from localhost (root@localhost) by nihil.plaut.de (8.11.3/8.8.8) with ESMTP id f75959e01232 for ; Sun, 5 Aug 2001 11:05:09 +0200 (CEST) (envelope-from root@nihil) Date: Sun, 5 Aug 2001 11:05:08 +0200 (CEST) From: Michael Reifenberger To: FreeBSD-Current Subject: Linux ls fails on DEVFS /dev Message-ID: <20010805104350.A1188-100000@nihil> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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