Michael, Jorgen and Sandino Flores Moreno
or whoever has experienced aufs readdir(3) returns empty.
Michael Towers:
> <<<It seems like there is still something wrong with aufs lag time.
> Here's the problem:
>
> - I made a live cd using your latest larch scripts.
> - I booted into the live cd and did a "pacman -Sl" and pacman lists all
> packages in the repos, about 3925 packages.
> - I did a "pacman -Syu" and all my packages were up to date. Immediately
> after that I do a "pacman -Sl" again and nothing is listed anymore.
> - I wait about 1 minute and do a "pacman -Sl" and the 3925 packages are
> listed again.>>>
I found the bug.
Please test this patch.
Junjiro Okajima
----------------------------------------------------------------------
Index: fs/aufs/vdir.c
===================================================================
RCS file: /cvsroot/aufs/aufs/fs/aufs/vdir.c,v
retrieving revision 1.26
diff -u -p -r1.26 vdir.c
--- fs/aufs/vdir.c 25 Jun 2007 00:46:36 -0000 1.26
+++ fs/aufs/vdir.c 4 Jul 2007 06:50:08 -0000
@@ -560,7 +560,7 @@ static int read_vdir(struct file *file,
continue;
h_inode = hf->f_dentry->d_inode;
- //hf->f_pos = 0;
+ hf->f_pos = 0;
arg.bindex = bindex;
do {
arg.err = 0;
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/