[256] in The Cryptographic File System users list
readdir() problems with cfs
daemon@ATHENA.MIT.EDU (Erik Arneson)
Wed Feb 6 20:59:55 2002
From owner-cfs-users@crypto.com Thu Feb 07 01:59:55 2002
Return-Path: <owner-cfs-users@crypto.com>
Delivered-To: cfs-mtg@CHARON.mit.edu
Received: (qmail 4469 invoked from network); 7 Feb 2002 01:59:55 -0000
Received: from mx.crypto.com (207.140.168.138)
by charon.mit.edu with SMTP; 7 Feb 2002 01:59:55 -0000
Received: (from majordomo@localhost)
by MultiHostMXServer (8.9.3/8.9.x4) id UAA11062
for cfs-users-list; Wed, 6 Feb 2002 20:47:30 -0500 (EST)
Received: from nsa.research.att.com (H-135-207-24-155.research.att.com [135.207.24.155])
by MultiHostMXServer (8.9.3/8.9.x4) with ESMTP id UAA25333
for <cfs-users@crypto.com>; Wed, 6 Feb 2002 20:47:28 -0500 (EST)
Received: from mail-green.research.att.com (mail-green.research.att.com [135.207.30.103]) by nsa.research.att.com (8.7.3/8.7.3) with ESMTP id UAA23585 for <cfs-users@nsa.research.att.com>; Wed, 6 Feb 2002 20:47:26 -0500 (EST)
Received: by mail-green.research.att.com (Postfix)
id E68C41E118; Wed, 6 Feb 2002 20:47:28 -0500 (EST)
Delivered-To: cfs-users@research.att.com
Received: from janus (janus.research.att.com [135.207.1.2])
by mail-green.research.att.com (Postfix) with SMTP id B598B1E08B
for <cfs-users@research.att.com>; Wed, 6 Feb 2002 20:47:27 -0500 (EST)
Received: from ([206.101.74.70]) by janus; Wed, 06 Feb 2002 20:55:35 -0500 (EST)
Received: from sif.musiciansfriend.com (developer.musiciansfriend.com [208.137.126.53] (may be forged))
by marco.aarg.net (8.12.1/8.12.1) with ESMTP id g171lO7t025471
(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK)
for <cfs-users@research.att.com>; Wed, 6 Feb 2002 17:47:25 -0800
Received: from sif.musiciansfriend.com.musiciansfriend.com (localhost.localdomain [127.0.0.1])
by sif.musiciansfriend.com (8.12.1/8.12.1) with ESMTP id g171lOm7015959
for <cfs-users@research.att.com>; Wed, 6 Feb 2002 17:47:24 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15457.56492.466592.163243@sif.musiciansfriend.com>
Date: Wed, 6 Feb 2002 17:47:24 -0800
To: cfs-users@research.att.com
Subject: readdir() problems with cfs
X-Mailer: VM 6.96 under 21.4 (patch 5) "Civil Service" XEmacs Lucid
X-URL: http://erik.arneson.org/
X-Web: http://erik.arneson.org/
X-Home-Page: http://erik.arneson.org/
X-Face: (tqZYuGE?nmt+0+#GxA:9MCh\^]L?4E&}G79|/Xo~_)Pw5DE9-!hZff&>`8".[Wj1m
A4~Qj`/}%?75sWO2TPOZ/'AfN!84V]P{k5:3?sR./6&Cb.B2/u/-5g*^H!E|iU&?jC*=Rc=Z:
|2Vbqn+4wOU/II:3b(lsd]a%fcYZ6O$28N';u]?O6.*)U"yiJ?pE=)$$1)xIU~l\3iCiH*.A}
H#YW1Wql9RXB;DTEb_.e4DmH$@?63FeK
From: Erik Arneson <erik@aarg.net>
Sender: owner-cfs-users@crypto.com
Precedence: bulk
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi everybody,
I'm a brand new user of CFS, so forgive me if this is a FAQ. I couldn't
find much information regarding CFS on the web, so I'm not sure where to
begin with debugging this problem.
I have a directory with approximately 200 files in it, which I'm
accessing via CFS. However, certain opendir calls seem to only return
the first 63 entries in the directory when it's accessed via CFS,
including this simple bit of C code:
int
main(int argc, char ** argv)
{
DIR *foo;
struct dirent *file;
int count = 0;
if ((foo = opendir("/mnt/crypt/mydir")) == NULL) {
fprintf(stderr, "Error opening directory\n");
exit(1);
}
while ((file = readdir(foo)) != NULL) {
printf(":%s:\n", file->d_name);
count++;
}
closedir(foo);
printf("%d entries!\n", count);
exit(0);
}
However, /bin/ls shows all of the files, as does a simple "echo
/mnt/crypt/mydir/*" from a bash prompt.
I'm running Linux 2.4.17 and glibc 2.2.4 on a mostly stock RedHat 7.2
system, using an SRPM of CFS 1.4.0beta2 that I downloaded from
rpmfind.net.
Has anybody encountered this problem? Is there a simple fix somewhere?
Thanks!
- --
# Erik Arneson <erik@aarg.net> AARG Net <http://www.aarg.net/> #
# GPG Key ID: 1024D/43AD6AB8 <http://erik.arneson.org/> #
# "Resistance to tyrants is obedience to God!" - Thomas Jefferson #
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6
iEYEARECAAYFAjxh3EoACgkQddRcHUOtariipwCfWoSIfeMgD0uu6jLjI3snK2uy
cDsAmgLpGpvzoWxRttgPyePnAapvas74
=+Z3b
-----END PGP SIGNATURE-----