FreeBSD Bugzilla – Attachment 9693 Details for
Bug 19756
[patch] Inability to use linux extended partition (type 0x85)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.diff
file.diff (text/plain), 1.74 KB, created by
Leonard den Ottolander
on 2000-07-07 21:00:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Leonard den Ottolander
Created:
2000-07-07 21:00:00 UTC
Size:
1.74 KB
patch
obsolete
>*** subr_diskmbr.c.000 Fri Jan 28 11:22:07 2000 >--- subr_diskmbr.c Mon Jun 26 19:42:55 2000 >*************** >*** 49,55 **** >--- 49,59 ---- > #include <sys/disklabel.h> > #define DOSPTYP_EXTENDED 5 > #define DOSPTYP_EXTENDEDX 15 >+ #define DOSPTYP_LINUXEXTENDED 133 > #define DOSPTYP_ONTRACK 84 >+ #define IS_EXTENDED(p) \ >+ ((p) == DOSPTYP_EXTENDED || (p) == DOSPTYP_EXTENDEDX \ >+ || (p) == DOSPTYP_LINUXEXTENDED ) > #include <sys/diskslice.h> > #include <sys/malloc.h> > #include <sys/syslog.h> >*************** >*** 343,350 **** > /* Handle extended partitions. */ > sp -= NDOSPART; > for (dospart = 0; dospart < NDOSPART; dospart++, sp++) >! if (sp->ds_type == DOSPTYP_EXTENDED || >! sp->ds_type == DOSPTYP_EXTENDEDX) > mbr_extended(bp->b_dev, lp, ssp, > sp->ds_offset, sp->ds_size, sp->ds_offset, > max_nsectors, max_ntracks, mbr_offset, 1); >--- 347,353 ---- > /* Handle extended partitions. */ > sp -= NDOSPART; > for (dospart = 0; dospart < NDOSPART; dospart++, sp++) >! if (IS_EXTENDED(sp->ds_type)) > mbr_extended(bp->b_dev, lp, ssp, > sp->ds_offset, sp->ds_size, sp->ds_offset, > max_nsectors, max_ntracks, mbr_offset, 1); >*************** >*** 433,440 **** > if (dp->dp_scyl == 0 && dp->dp_shd == 0 && dp->dp_ssect == 0 > && dp->dp_start == 0 && dp->dp_size == 0) > continue; >! if (dp->dp_typ == DOSPTYP_EXTENDED || >! dp->dp_typ == DOSPTYP_EXTENDEDX) { > static char buf[32]; > > sname = dsname(dev, dkunit(dev), WHOLE_DISK_SLICE, >--- 436,442 ---- > if (dp->dp_scyl == 0 && dp->dp_shd == 0 && dp->dp_ssect == 0 > && dp->dp_start == 0 && dp->dp_size == 0) > continue; >! if (IS_EXTENDED(dp->dp_typ)) { > static char buf[32]; > > sname = dsname(dev, dkunit(dev), WHOLE_DISK_SLICE,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 19756
: 9693