diff options
author | Miles Bader <miles@gnu.org> | 1997-03-02 21:12:21 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-03-02 21:12:21 +0000 |
commit | 53b43872700ecbfa92bf91a0243c1ade12a82ff3 (patch) | |
tree | ec10a91d7092a9bad257948a1549164883941458 | |
parent | b874a4dc711a37af94aedad80512135474c59536 (diff) |
(netfs_S_fsys_getroot):
Add PEROPEN_CONTEXT variable, and pass it to netfs_make_peropen &
fshelp_fetch_root.
-rw-r--r-- | libnetfs/fsys-getroot.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; |