summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-01-05 00:10:02 +0000
committerRoland McGrath <roland@gnu.org>1996-01-05 00:10:02 +0000
commitda8b4a25a4634e497d0d7758a55f2a8818ccc469 (patch)
tree190c8fd7492180600c55e8af092d421cf5d0e354 /ufs
parent8854b41ec40b311f04cf2711e50302c5c0340207 (diff)
(main): Don't map disk image here; create_disk_pager now does it.
Diffstat (limited to 'ufs')
-rw-r--r--ufs/main.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/ufs/main.c b/ufs/main.c
index bb002208..59e56df4 100644
--- a/ufs/main.c
+++ b/ufs/main.c
@@ -1,5 +1,5 @@
-/*
- Copyright (C) 1994, 1995 Free Software Foundation
+/*
+ Copyright (C) 1994, 1995, 1996 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -81,7 +81,7 @@ main (int argc, char **argv)
if (bootstrap == MACH_PORT_NULL)
error (2, 0, "Must be started as a translator");
}
-
+
/* Initialize the diskfs library. Must come before any other diskfs call. */
diskfs_init_diskfs ();
@@ -105,13 +105,6 @@ main (int argc, char **argv)
/* Start the first request thread, to handle RPCs and page requests. */
diskfs_spawn_first_thread ();
- err = vm_map (mach_task_self (), (vm_address_t *)&disk_image,
- disk_size, 0, 1, diskpagerport, 0, 0,
- VM_PROT_READ | (diskfs_readonly ? 0 : VM_PROT_WRITE),
- VM_PROT_READ | VM_PROT_WRITE,
- VM_INHERIT_NONE);
- assert (!err);
-
get_hypermetadata ();
inode_init ();
@@ -123,14 +116,14 @@ main (int argc, char **argv)
set properly, it is safe to export our fsys control port to the
outside world. */
diskfs_startup_diskfs (bootstrap, 0);
-
+
/* And this thread is done with its work. */
cthread_exit (0);
return 0;
}
-error_t
+error_t
diskfs_reload_global_state ()
{
flush_pokes ();