bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix partition detection in GNUMach


From: Marco Gerards
Subject: Fix partition detection in GNUMach
Date: 19 Jan 2004 01:32:32 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

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.

Roland, do you remember this thread?:

http://lists.debian.org/debian-hurd/2001/debian-hurd-200105/threads.html#00300

With autoconf 2.57 it is not possible anymore to make a working
configure.  Can you please update aclocal.m4 and configure.in or tell
me what needs to be done?

Thanks,
Marco


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);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]