summaryrefslogtreecommitdiff
path: root/libdiskfs/init-init.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-10 21:17:44 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-10 21:17:44 +0000
commitb8515ef09711481f01ad2d86dbd54da27eea34a5 (patch)
tree7116a6143427f0591f369be38714e4d9ddb70a80 /libdiskfs/init-init.c
parent0a110e1d2a14e390c48a4c966dca54bf6a0efc1b (diff)
(diskfs_fsys_identity): New variable.
(diskfs_init_diskfs): Initialize diskfs_fsys_identity.
Diffstat (limited to 'libdiskfs/init-init.c')
-rw-r--r--libdiskfs/init-init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libdiskfs/init-init.c b/libdiskfs/init-init.c
index bce8c73b..14c6f84d 100644
--- a/libdiskfs/init-init.c
+++ b/libdiskfs/init-init.c
@@ -28,6 +28,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
mach_port_t diskfs_default_pager;
mach_port_t diskfs_auth_server_port;
volatile struct mapped_time_value *diskfs_mtime;
+mach_port_t diskfs_fsys_identity;
spin_lock_t diskfs_node_refcnt_lock = SPIN_LOCK_INITIALIZER;
@@ -70,6 +71,11 @@ diskfs_init_diskfs (void)
if (err)
return err;
+ err = mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE,
+ &diskfs_fsys_identity);
+ if (err)
+ return err;
+
diskfs_auth_server_port = getauth ();
diskfs_protid_class = ports_create_class (diskfs_protid_rele, 0);