commit b35003029909a7886069a693c855719e43589274
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date: Fri May 18 11:57:26 2007 -0400
unionfs_readdir to ingore EINVAL error from filldir so that nfs_readdir
does not fail
diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c
index
54057a85905e8b0ded4239f123de76678bcf04f9..3ecdd1b0a38321e08b5f5fe2fb857ae111462144
100644
--- a/fs/unionfs/dirfops.c
+++ b/fs/unionfs/dirfops.c
@@ -90,6 +90,13 @@ static int unionfs_readdir(struct file *
/* filldir */
err = filldir(dirent, name, namelen, odf_file->f_pos, ino, d_type);
+ /* nfs_filldir buffer might be full and returned EINVAL, we must return
+ * no error so nfs_readdir continues readding the dir
+ */
+ if (err == -EINVAL) {
+ err = 0;
+ goto out;
+ }
if (err)
goto out;
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs