Deal with a new exteded MBR paritition type

Submitted by:	Michal Mertl <mime@traveller.cz>
This commit is contained in:
phk 2002-09-08 15:13:33 +00:00
parent 549c71a099
commit 6030f30112
4 changed files with 4 additions and 1 deletions

View File

@ -348,7 +348,7 @@ g_mbrext_taste(struct g_class *mp, struct g_provider *pp, int insist __unused)
slice = 0;
while (1) { /* a trick to allow us to use break */
error = g_getattr("MBR::type", cp, &i);
if (error || i != DOSPTYP_EXT)
if (error || (i != DOSPTYP_EXT && i != DOSPTYP_EXTLBA))
break;
error = g_getattr("GEOM::fwsectors", cp, &fwsectors);
if (error)

View File

@ -324,6 +324,7 @@ struct dos_partition {
#define DOSPTYP_LINSWP 0x82 /* Linux swap partition */
#define DOSPTYP_LINUX 0x83 /* Linux partition */
#define DOSPTYP_EXT 5 /* DOS extended partition */
#define DOSPTYP_EXTLBA 15 /* DOS extended partition */
struct dos_partition {
unsigned char dp_flag; /* bootstrap flags */

View File

@ -324,6 +324,7 @@ struct dos_partition {
#define DOSPTYP_LINSWP 0x82 /* Linux swap partition */
#define DOSPTYP_LINUX 0x83 /* Linux partition */
#define DOSPTYP_EXT 5 /* DOS extended partition */
#define DOSPTYP_EXTLBA 15 /* DOS extended partition */
struct dos_partition {
unsigned char dp_flag; /* bootstrap flags */

View File

@ -324,6 +324,7 @@ struct dos_partition {
#define DOSPTYP_LINSWP 0x82 /* Linux swap partition */
#define DOSPTYP_LINUX 0x83 /* Linux partition */
#define DOSPTYP_EXT 5 /* DOS extended partition */
#define DOSPTYP_EXTLBA 15 /* DOS extended partition */
struct dos_partition {
unsigned char dp_flag; /* bootstrap flags */