summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-02-06 08:39:43 +0000
committerMiles Bader <miles@gnu.org>1997-02-06 08:39:43 +0000
commit252f758cc366805cfc73cd4d4c130e7b301566f2 (patch)
treef9aefcd26e298c9b778534c0cae60743adad56b3
parentd6d78bda44ed822e8f7b996e66fc161e44645daa (diff)
(diskfs_S_fsys_getroot):
Supply DEPTH argument to diskfs_make_peropen. Pass new type of cookie2 to fshelp_fetch_root, as expected by _diskfs_translator_callback2.
-rw-r--r--libdiskfs/fsys-getroot.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libdiskfs/fsys-getroot.c b/libdiskfs/fsys-getroot.c
index fec9d38f..ea5759b5 100644
--- a/libdiskfs/fsys-getroot.c
+++ b/libdiskfs/fsys-getroot.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation
+ Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation
This file is part of the GNU Hurd.
@@ -71,8 +71,10 @@ diskfs_S_fsys_getroot (fsys_t controlport,
|| fshelp_translated (&diskfs_root_node->transbox))
&& !(flags & O_NOTRANS))
{
+ struct diskfs_trans_callback_cookie2 cookie2 = { dotdot, 0 };
+
error = fshelp_fetch_root (&diskfs_root_node->transbox,
- &dotdot, dotdot, &user, flags,
+ &cookie2, dotdot, &user, flags,
_diskfs_translator_callback1,
_diskfs_translator_callback2,
retry, retryname, returned_port);
@@ -171,7 +173,7 @@ diskfs_S_fsys_getroot (fsys_t controlport,
flags &= ~OPENONLY_STATE_MODES;
error = diskfs_create_protid (diskfs_make_peropen (diskfs_root_node,
- flags, dotdot),
+ flags, dotdot, 0),
&user, &newpi);
mach_port_deallocate (mach_task_self (), dotdot);
if (! error)