Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Ruediger Oertel <ro@suse.de>
To: axp-list@redhat.com
Subject: Re: Red Hat Rawhide/Alpha
Date: Mon, 29 Nov 1999 09:11:30 +0100 (MET)	[thread overview]
Message-ID: <Pine.LNX.4.10.9911290908230.26880-200000@fatou.suse.de> (raw)
In-Reply-To: <slrn844421.h1t.notting@porkchop.redhat.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1119 bytes --]

On 29 Nov 1999, Bill Nottingham wrote:

> On 28 Nov 1999 04:26:50 -0500, Chris Kloiber <ckloiber@rochester.rr.com> wrote:
> >the ext2 partitions from milo but with the 'sparse superblocks' as you call
> >them way you get is a bunch of lines of useless garbage, as though milo is
> >looking at a data sector and trying to interpret  it as a directory.
> 
> Actually, both milo and aboot have/had problems with
> a) 4K block sizes b) new (2.2 kernel) fs features such as sparse
> superblocks/filetypes.  If you make the /boot partition with
> mke2fs -O none it should read it OK.
> 
> I believe the aboot in Raw Hide is fixed so that it can deal with these.
I just had a look in the SRPM and it does not really look that way.
Here if a patch that worked for me (with 4k-blocksize and filetype-feature).
It might overlap with your current patchset, so maybe you'll have to apply
some by hand.  (patch attached)

-- 
with kind regards (mit freundlichem Grinsen),
                              Ruediger Oertel (ro@suse.de)
----------------------------------------------------------
          does "DONT PANIC" give a hint ?

[-- Attachment #2: patch for aboot --]
[-- Type: TEXT/PLAIN, Size: 2058 bytes --]

--- fs/ext2.c
+++ fs/ext2.c	1999/11/25 15:35:02
@@ -20,13 +20,12 @@
 #include "disklabel.h"
 #include "utils.h"
 
-#define MAX_SUPPORTED_GROUPS	256		/* supports 2GB filesystem */
 #define MAX_OPEN_FILES		4
 
 extern struct bootfs ext2fs;
 
 static struct ext2_super_block sb;
-static struct ext2_group_desc gds[MAX_SUPPORTED_GROUPS];
+static struct ext2_group_desc *gds;
 static int ngroups = 0;
 static int directlim;			/* Maximum direct blkno */
 static int ind1lim;			/* Maximum single-indir blkno */
@@ -87,21 +86,18 @@
 
 	ngroups = (sb.s_blocks_count + sb.s_blocks_per_group - 1)
 	  / sb.s_blocks_per_group;
-	if (ngroups > MAX_SUPPORTED_GROUPS) {
-		printf("ext2_init: too many groups (%d): max is %d\n",
-		       ngroups, MAX_SUPPORTED_GROUPS);
-		return -1;
-	}
+	gds = (struct ext2_group_desc *)
+		malloc((size_t)(ngroups * sizeof(struct ext2_group_desc)));
 
+	ext2fs.blocksize = EXT2_BLOCK_SIZE(&sb);
 	/* read in the group descriptors (immediately follows superblock) */
 	cons_read(dev, gds, ngroups * sizeof(struct ext2_group_desc),
-		  partition_offset + sb_offset + sizeof(sb));
-
+		  partition_offset +
+                  ext2fs.blocksize*(EXT2_MIN_BLOCK_SIZE/ext2fs.blocksize +1) );
 	/*
 	 * Calculate direct/indirect block limits for this file system
 	 * (blocksize dependent):
 	 */
-	ext2fs.blocksize = EXT2_BLOCK_SIZE(&sb);
 	directlim = EXT2_NDIR_BLOCKS - 1;
 	ptrs_per_blk = ext2fs.blocksize/sizeof(unsigned int);
 	ind1lim = ptrs_per_blk + directlim;
@@ -323,7 +319,7 @@
 	char namebuf[256];
 	char *component;
 	struct ext2_inode *dir_inode;
-	struct ext2_dir_entry *dp;
+	struct ext2_dir_entry_2 *dp;
 	int next_ino;
 
 	/* squirrel away a copy of "namebuf" that we can modify: */
@@ -356,7 +352,7 @@
 				return NULL;
 			}
 			while (blockoffset < ext2fs.blocksize) {
-				dp = (struct ext2_dir_entry *)
+				dp = (struct ext2_dir_entry_2 *)
 				  (blkbuf + blockoffset);
 				if ((dp->name_len == component_length) &&
 				    (strncmp(component, dp->name,

  reply	other threads:[~1999-11-29  8:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-28  3:02 Red Hat Rawhide/Alpha Chris Kloiber
1999-11-28  3:35 ` Praveen Srinivasan
1999-11-28  6:15   ` Mitchell Blank Jr
1999-11-28  4:59 ` Michal Jaegermann
1999-11-28  9:27   ` Chris Kloiber
1999-11-28 16:14     ` Michal Jaegermann
1999-11-29  5:29     ` Bill Nottingham
1999-11-29  8:11       ` Ruediger Oertel [this message]
1999-11-28  6:40 ` Ric Tibbetts
1999-11-28  7:08   ` michael
1999-11-28  8:28     ` Ed Hall
1999-11-28 13:11       ` Rich Payne
1999-11-29  7:41         ` Helge Kreutzmann
1999-11-29 10:16           ` Sean Hunter
1999-11-29 15:17       ` Ric Tibbetts
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox