summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);