Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/puffs/mount_psshfs Initialize psshfs root node's re...



details:   https://anonhg.NetBSD.org/src/rev/d2c5eb711342
branches:  trunk
changeset: 765109:d2c5eb711342
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu May 19 15:07:16 2011 +0000

description:
Initialize psshfs root node's readdir waiters queue.

Every other node's readder waiters queue is initialized in makenode,
but the root node is created specially.

ok pooka

diffstat:

 usr.sbin/puffs/mount_psshfs/psshfs.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r d02956186b41 -r d2c5eb711342 usr.sbin/puffs/mount_psshfs/psshfs.c
--- a/usr.sbin/puffs/mount_psshfs/psshfs.c      Thu May 19 14:29:27 2011 +0000
+++ b/usr.sbin/puffs/mount_psshfs/psshfs.c      Thu May 19 15:07:16 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: psshfs.c,v 1.62 2010/10/29 16:13:51 pooka Exp $        */
+/*     $NetBSD: psshfs.c,v 1.63 2011/05/19 15:07:16 riastradh Exp $    */
 
 /*
  * Copyright (c) 2006-2009  Antti Kantee.  All Rights Reserved.
@@ -41,7 +41,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: psshfs.c,v 1.62 2010/10/29 16:13:51 pooka Exp $");
+__RCSID("$NetBSD: psshfs.c,v 1.63 2011/05/19 15:07:16 riastradh Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -257,6 +257,7 @@
 
        pctx.nextino = 2;
        memset(root, 0, sizeof(struct psshfs_node));
+       TAILQ_INIT(&root->pw);
        pn_root = puffs_pn_new(pu, root);
        if (pn_root == NULL)
                return errno;



Home | Main Index | Thread Index | Old Index