From nobody@FreeBSD.org  Sun Apr 14 09:46:53 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 3384137B404
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Apr 2002 09:46:53 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g3EGkr629165;
	Sun, 14 Apr 2002 09:46:53 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200204141646.g3EGkr629165@freefall.freebsd.org>
Date: Sun, 14 Apr 2002 09:46:53 -0700 (PDT)
From: Aggelos Oikonomopoulos <lydwigvernon@yahoo.co.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] kernel does not support extended linux partitions
X-Send-Pr-Version: www-1.0

>Number:         37063
>Category:       kern
>Synopsis:       [PATCH] kernel does not support extended linux partitions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 14 09:50:01 PDT 2002
>Closed-Date:    Tue Apr 23 15:36:38 PDT 2002
>Last-Modified:  Tue Apr 23 15:36:38 PDT 2002
>Originator:     Aggelos Oikonomopoulos
>Release:        FreeBSD -stable
>Organization:
>Environment:
FreeBSD erwin.gr 4.5-STABLE FreeBSD 4.5-STABLE #0: Thu Mar  7 17:33:51 EET 2002 root@erwin.gr:/usr/obj/usr/src/sys/CUSTOM  i386
>Description:
The kernel does not handle partitions of type 0x85 (extended linux).
An extended linux partition is the same as an extended DOS partition, except for the entry in the partition table.
Looking at the code, -current does not provide this functionality either.
>How-To-Repeat:
Create an extended partition of type 0x85 and at least one logical partition in it. Try to access the device corresponding to such a logical partition.
>Fix:
A three-liner to add the functionality can be found at
http://www.cc.ece.ntua.gr/~aoiko/lin-extp.patch
>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: Aggelos Oikonomopoulos <lydwigvernon@yahoo.co.uk>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/37063: [PATCH] kernel does not support extended linux
 partitions
Date: Tue, 16 Apr 2002 11:00:21 +1000 (EST)

 On Sun, 14 Apr 2002, Aggelos Oikonomopoulos wrote:
 
 > >Description:
 > The kernel does not handle partitions of type 0x85 (extended linux).
 > An extended linux partition is the same as an extended DOS partition, except for the entry in the partition table.
 
 PRs 19756 and 27269 are also about this.
 
 I don't agree with changing the current behaviour.  Using extended Linux
 partitions mainly breaks inter-operability with other OS's, including
 previous versions of FreeBSD.
 
 Bruce
 

From: =?iso-8859-7?b?tuPj5evv8iDP6erv7e/s/PDv9evv8g==?= <lydwigvernon@yahoo.co.uk>
To: Bruce Evans <bde@zeta.org.au>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/37063: [PATCH] kernel does not support extended linux partitions
Date: Tue, 16 Apr 2002 04:40:48 +0300

 On Tuesday 16 April 2002 04:00, Bruce Evans wrote:
 > On Sun, 14 Apr 2002, Aggelos Oikonomopoulos wrote:
 > > >Description:
 > >
 > > The kernel does not handle partitions of type 0x85 (extended linux).
 > > An extended linux partition is the same as an extended DOS partition,
 > > except for the entry in the partition table.
 >
 > PRs 19756 and 27269 are also about this.
 Ooops
 >
 > I don't agree with changing the current behaviour.  Using extended Linux
 > partitions mainly breaks inter-operability with other OS's, including
 > previous versions of FreeBSD.
 
 But I'm not suggesting people to use 0x85 partitions. I' m merely suggesting 
 that the kernel should provide for people who, for whatever reason 
 (inertia?), are stuck with them. Some people call _this_ interoperability.
 
 BTW, to my knowledge, extended linux partitions were used (in place of 0x05) 
 to prevent certain versions of dos fdisk from crashing when it tries to 
 follow beyond cyl 1024, that is, to preserve compatibility. (so for some 
 people, using 0x85 could be a neccessity)
 >
 > Bruce

From: Bruce Evans <bde@zeta.org.au>
To: =?iso-8859-7?b?tuPj5evv8iDP6erv7e/s/PDv9evv8g==?= <lydwigvernon@yahoo.co.uk>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/37063: [PATCH] kernel does not support extended linux
 partitions
Date: Thu, 18 Apr 2002 20:51:22 +1000 (EST)

 On Tue, 16 Apr 2002, [iso-8859-7] =B6=E3=E3=E5=EB=EF=F2 =CF=E9=EA=EF=ED=EF=
 =EC=FC=F0=EF=F5=EB=EF=F2 wrote:
 
 > On Tuesday 16 April 2002 04:00, Bruce Evans wrote:
 > > I don't agree with changing the current behaviour.  Using extended Linu=
 x
 > > partitions mainly breaks inter-operability with other OS's, including
 > > previous versions of FreeBSD.
 >
 > But I'm not suggesting people to use 0x85 partitions. I' m merely suggest=
 ing
 > that the kernel should provide for people who, for whatever reason
 > (inertia?), are stuck with them. Some people call _this_ interoperability=
 =2E
 
 I'd concerned about breaking configurations that use 0x85 for something
 else.  Even if it is for a Linux extended partition, recognizing it will
 reorder the slice numbers for logical drives within ordinary extended
 partitions if the Linux one is scanned first.
 
 > BTW, to my knowledge, extended linux partitions were used (in place of 0x=
 05)
 > to prevent certain versions of dos fdisk from crashing when it tries to
 > follow beyond cyl 1024, that is, to preserve compatibility. (so for some
 > people, using 0x85 could be a neccessity)
 
 Perhaps this is not really a problem now.  I sometimes boot DOS-4.1 (1988
 version), and it is certainly confused by cylinders beyond 1024, but using
 magic extended partition types wouldn't help much because it is the primary
 partitions beyond cylinder 1024 that cause the biggest problems :-).
 
 Do you know which versions of Linux default to using 0x85?  The version
 of Linux fdisk that I have handy (built on Apr 23 1997) doesn't mention
 partition 0x85, but IIRC the Linux kernel support for partition 0x85 is
 older.
 
 Bruce
 

From: Aggelos Economopoulos <lydwigvernon@yahoo.co.uk>
To: Bruce Evans <bde@zeta.org.au>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/37063: [PATCH] kernel does not support extended linux partitions
Date: Thu, 18 Apr 2002 22:19:18 +0300

 On Thursday 18 April 2002 13:51, Bruce Evans wrote:
 > On Tue, 16 Apr 2002, [iso-8859-7]   wrote:
 > > On Tuesday 16 April 2002 04:00, Bruce Evans wrote:
 > > > I don't agree with changing the current behaviour.  Using extended
 > > > Linux partitions mainly breaks inter-operability with other OS's,
 > > > including previous versions of FreeBSD.
 > >
 > > But I'm not suggesting people to use 0x85 partitions. I' m merely
 > > suggesting that the kernel should provide for people who, for whatever
 > > reason (inertia?), are stuck with them. Some people call _this_
 > > interoperability.
 >
 > I'd concerned about breaking configurations that use 0x85 for something
 > else.  Even if it is for a Linux extended partition, recognizing it will
 > reorder the slice numbers for logical drives within ordinary extended
 > partitions if the Linux one is scanned first.
 
 Good point. I could argue that we can deal with this situation, but just 
 thinking about the ugliness of the resulting code makes me want to puke.
 
 Please close the pr. Read on for the historical data you requested
 
 > > BTW, to my knowledge, extended linux partitions were used (in place of
 > > 0x05) to prevent certain versions of dos fdisk from crashing when it
 > > tries to follow beyond cyl 1024, that is, to preserve compatibility. (so
 > > for some people, using 0x85 could be a neccessity)
 >
 > Perhaps this is not really a problem now.  I sometimes boot DOS-4.1 (1988
 > version), and it is certainly confused by cylinders beyond 1024, but using
 > magic extended partition types wouldn't help much because it is the primary
 > partitions beyond cylinder 1024 that cause the biggest problems :-).
 >
 > Do you know which versions of Linux default to using 0x85? 
 
 None that I know of.
 
 > The version
 > of Linux fdisk that I have handy (built on Apr 23 1997) doesn't mention
 > partition 0x85, but IIRC the Linux kernel support for partition 0x85 is
 > older.
 
 Much older. First appeared in 1.3.3x, that is, circa Nov 1995
 
 
 > Bruce
State-Changed-From-To: open->closed 
State-Changed-By: johan 
State-Changed-When: Tue Apr 23 15:35:16 PDT 2002 
State-Changed-Why:  
Closed at submitters req. Also duplicate of  
PR 19756 and PR 27269. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37063 
>Unformatted:
