Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/v7fs Fix readdir eofflag(bogus eofflags was setted). ...



details:   https://anonhg.NetBSD.org/src/rev/3cdd12308b67
branches:  trunk
changeset: 767253:3cdd12308b67
user:      uch <uch%NetBSD.org@localhost>
date:      Wed Jul 13 12:28:57 2011 +0000

description:
Fix readdir eofflag(bogus eofflags was setted). getcwd works.

diffstat:

 sys/fs/v7fs/v7fs_vnops.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r c17de8c14fd0 -r 3cdd12308b67 sys/fs/v7fs/v7fs_vnops.c
--- a/sys/fs/v7fs/v7fs_vnops.c  Wed Jul 13 12:22:49 2011 +0000
+++ b/sys/fs/v7fs/v7fs_vnops.c  Wed Jul 13 12:28:57 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: v7fs_vnops.c,v 1.2 2011/07/13 12:22:49 uch Exp $       */
+/*     $NetBSD: v7fs_vnops.c,v 1.3 2011/07/13 12:28:57 uch Exp $       */
 
 /*-
  * Copyright (c) 2004, 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: v7fs_vnops.c,v 1.2 2011/07/13 12:22:49 uch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: v7fs_vnops.c,v 1.3 2011/07/13 12:28:57 uch Exp $");
 #if defined _KERNEL_OPT
 #include "opt_v7fs.h"
 #endif
@@ -887,6 +887,9 @@
        }
        scratch_free(fs, buf);
 
+       if (p->cnt == p->end)
+               return V7FS_ITERATOR_BREAK;
+
        return error;
 }
 



Home | Main Index | Thread Index | Old Index