Deal with a new exteded MBR paritition type
Submitted by: Michal Mertl <mime@traveller.cz>
This commit is contained in:
parent
7e6fb406ff
commit
fbbdde85f8
@ -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)
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user