From b6078883848500fba79ac0998de3e5243b383b66 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 3 Feb 1996 10:31:14 +0000 Subject: Tue Jan 30 22:25:19 1996 Miles Bader * hyper.c (get_hypermetadata): Don't return any error value, just panic if we can't read the superblock. * ext2fs.c (main): Move warp_inode() inline. Make sure root inode is really there. Don't check return value from get_hypermetadata. (warp_inode): Function removed. * ext2fs.h (get_hypermetadata): Returns void now. --- ext2fs/hyper.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'ext2fs/hyper.c') diff --git a/ext2fs/hyper.c b/ext2fs/hyper.c index fa70888f..c31c3972 100644 --- a/ext2fs/hyper.c +++ b/ext2fs/hyper.c @@ -1,6 +1,6 @@ /* Fetching and storing the hypermetadata (superblock and bg summary info) - Copyright (C) 1994, 1995 Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. Written by Miles Bader @@ -52,13 +52,12 @@ static void allocate_mod_map () modified_global_blocks = 0; } -error_t +void get_hypermetadata (void) { error_t err = diskfs_catch_exception (); - if (err) - return err; + ext2_panic ("can't read superblock: %s", strerror (err)); if (zeroblock) vm_deallocate (mach_task_self (), zeroblock, block_size); @@ -129,8 +128,6 @@ get_hypermetadata (void) /* A handy source of page-aligned zeros. */ vm_allocate (mach_task_self (), &zeroblock, block_size, 1); - - return 0; } void -- cgit v1.2.3