[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix partition detection in GNUMach
From: |
James Morrison |
Subject: |
Re: Fix partition detection in GNUMach |
Date: |
Sun, 18 Jan 2004 20:24:58 -0500 |
User-agent: |
Mutt/1.3.28i |
On Mon, Jan 19, 2004 at 01:32:32AM +0100, Marco Gerards wrote:
> Hi,
>
> This patch fixes the partition detection in GNUMach 1.x. Now an error
> is displayed when there is an extended partition on the harddrive.
> See bug #6378 on savannah for details.
So with this patch the annoying error message is no longer displayed?
Jim
> 2004-01-19 Marco Gerards <metgerards@student.han.nl>
>
> * linux/dev/glue/block.c (init_partition): Don't check for BSD
> partitions if the DOS partition is too small.
>
> Index: linux/dev/glue/block.c
> ===================================================================
> RCS file: /cvsroot/hurd/gnumach/linux/dev/glue/Attic/block.c,v
> retrieving revision 1.8.2.1
> diff -u -p -r1.8.2.1 block.c
> --- linux/dev/glue/block.c 16 Jan 2004 22:36:52 -0000 1.8.2.1
> +++ linux/dev/glue/block.c 19 Jan 2004 00:22:07 -0000
> @@ -961,7 +961,7 @@ init_partition (struct name_map *np, kde
> if (ds->fops->open && (*ds->fops->open) (&d->inode, &d->file))
> continue;
> lp = read_bsd_label (d->inode.i_rdev);
> - if (! lp)
> + if (! lp && gd->part[MINOR (d->inode.i_rdev)].nr_sects > PDLOCATION)
> lp = read_vtoc (d->inode.i_rdev);
> if (ds->fops->release)
> (*ds->fops->release) (&d->inode, &d->file);