afs/fs/cachefs rootdir.c,1.14,1.15
dwh at infradead.org
dwh at infradead.org
Thu Jul 17 10:49:41 BST 2003
- Previous message: afs/fs/cachefs recycling.c,1.27,1.28 aops.c,1.42,1.43
- Next message: afs/fs/cachefs vjournal.c,1.4,1.5 rootdir.c,1.15,1.16
recycling.c,1.28,1.29 journal.c,1.40,1.41 index.c,1.28,1.29
dump-journal.c,1.14,1.15 cachefs-layout.h,1.31,1.32aops.c,1.43,1.44
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/afs/fs/cachefs
In directory phoenix.infradead.org:/tmp/cvs-serv14717
Modified Files:
rootdir.c
Log Message:
readdir now displays cache contents again
Index: rootdir.c
===================================================================
RCS file: /home/cvs/afs/fs/cachefs/rootdir.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- rootdir.c 10 Jul 2003 14:21:23 -0000 1.14
+++ rootdir.c 17 Jul 2003 08:49:39 -0000 1.15
@@ -185,7 +185,7 @@
_debug("dirent: %d '%s' ino=%u",
nlen, rec->scratch, xent->ino);
- if (nlen) {
+ if (nlen <= 0) {
desc->count -= rec->esize;
desc->written += rec->esize;
ret += rec->esize;
@@ -257,7 +257,7 @@
rec.dpos_off = 2;
rec.dsize = inode->index_dsize;
rec.esize = inode->index_esize;
- rec.epp = inode->index_esize;
+ rec.epp = inode->index_epp;
metadata = cachefs_metadata_preread(inode);
memcpy(rec.keys, metadata->index.keys, sizeof(rec.keys));
@@ -282,7 +282,7 @@
/* deal with root directory only entries */
if (inode->vfs_inode.i_ino == CACHEFS_INO_ROOTDIR) {
- rec.dpos_off = 5;
+ rec.dpos_off = 4;
switch (file->f_pos) {
case 2:
ret = filldir(cookie, "metadata_catalogue", 18,
- Previous message: afs/fs/cachefs recycling.c,1.27,1.28 aops.c,1.42,1.43
- Next message: afs/fs/cachefs vjournal.c,1.4,1.5 rootdir.c,1.15,1.16
recycling.c,1.28,1.29 journal.c,1.40,1.41 index.c,1.28,1.29
dump-journal.c,1.14,1.15 cachefs-layout.h,1.31,1.32aops.c,1.43,1.44
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-afs-cvs
mailing list