From 53b43872700ecbfa92bf91a0243c1ade12a82ff3 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sun, 2 Mar 1997 21:12:21 +0000 Subject: (netfs_S_fsys_getroot): Add PEROPEN_CONTEXT variable, and pass it to netfs_make_peropen & fshelp_fetch_root. --- libnetfs/fsys-getroot.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libnetfs') diff --git a/libnetfs/fsys-getroot.c b/libnetfs/fsys-getroot.c index a0de21c6..17f22fce 100644 --- a/libnetfs/fsys-getroot.c +++ b/libnetfs/fsys-getroot.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1996 Free Software Foundation, Inc. + Copyright (C) 1996, 1997 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -42,6 +42,7 @@ netfs_S_fsys_getroot (mach_port_t cntl, struct protid *newpi; mode_t type; struct idvec *uvec, *gvec; + struct peropen peropen_context = { root_parent: dotdot }; if (!pt) return EOPNOTSUPP; @@ -68,7 +69,7 @@ netfs_S_fsys_getroot (mach_port_t cntl, && !(flags & O_NOTRANS)) { err = fshelp_fetch_root (&netfs_root_node->transbox, - &dotdot, dotdot, cred, flags, + &peropen_context, dotdot, cred, flags, _netfs_translator_callback1, _netfs_translator_callback2, do_retry, retry_name, retry_port); @@ -129,9 +130,10 @@ netfs_S_fsys_getroot (mach_port_t cntl, flags &= ~OPENONLY_STATE_MODES; newpi = netfs_make_protid (netfs_make_peropen (netfs_root_node, flags, - dotdot), + &peropen_context), cred); mach_port_deallocate (mach_task_self (), dotdot); + *do_retry = FS_RETRY_NORMAL; *retry_port = ports_get_right (newpi); *retry_port_type = MACH_MSG_TYPE_MAKE_SEND; -- cgit v1.2.3