PERFORCE change 171147 for review

Gleb Kurtsou gk at FreeBSD.org
Sat Nov 28 22:00:11 UTC 2009


http://p4web.freebsd.org/chv.cgi?CH=171147

Change 171147 by gk at gk_h1 on 2009/11/28 21:59:22

	do not expect VOP_READDIR to set eofflag
	
	check if buffer is empty
	fixes running on msdosfs

Affected files ...

.. //depot/projects/soc2009/gk_pefs/sys/fs/pefs/pefs_vnops.c#27 edit

Differences ...

==== //depot/projects/soc2009/gk_pefs/sys/fs/pefs/pefs_vnops.c#27 (text+ko) ====

@@ -346,6 +346,8 @@
 			break;
 		offset = uio->uio_offset;
 
+		if (pc.pc_size == uio->uio_resid)
+			break;
 		pefs_chunk_setsize(&pc, pc.pc_size - uio->uio_resid);
 		pefs_enccn_parsedir(dpn->pn_dircache, ctx, dpn_key,
 		    pc.pc_base, pc.pc_size, cnp->cn_nameptr, cnp->cn_namelen,


More information about the p4-projects mailing list