commit d519744ffdaed38df6561ab5fe630f3989677c05
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date:   Tue May 22 18:27:39 2007 -0400

    readdir bug: must pass the file position at the start of the dirent to 
filldir

diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c
index f15f88a..21f8f3c 100644
--- a/fs/unionfs/dirfops.c
+++ b/fs/unionfs/dirfops.c
@@ -94,7 +94,7 @@ static int unionfs_readdir(struct file *file, void *dirent, 
filldir_t filldir)
                        goto out;
 
                /* filldir */
-               overflow = filldir(dirent, name, namelen, odf_file->f_pos, ino, 
d_type);
+               overflow = filldir(dirent, name, namelen, pos, ino, d_type);
                if (overflow)
                        odf_file->f_pos = pos; /* so the caller can re-read 
this dirent*/
        }
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to