From 8320d61be5613fb2875be859695752b1487fda20 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Sat, 27 Jun 2015 12:39:13 -0400 Subject: Pick up where i left off in april: - move log into metadata part of disk, so that marking that the log's blocks are in use falls out for free - superblock describes the whole disk (sizes and offets) - sizes and offsets are computed in one place (mkfs) and the rest of the code refers to the superblock for these values, instead of recomputing them. --- proc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'proc.c') diff --git a/proc.c b/proc.c index a642f5a..3ac41f6 100644 --- a/proc.c +++ b/proc.c @@ -339,7 +339,8 @@ forkret(void) // of a regular process (e.g., they call sleep), and thus cannot // be run from main(). first = 0; - initlog(); + iinit(ROOTDEV); + initlog(ROOTDEV); } // Return to "caller", actually trapret (see allocproc). -- cgit v1.2.3