Provisionally removed the fake iso partitioning in favour of a real partition

table on the boot CD
This commit is contained in:
Ben Gras 2005-09-07 10:04:48 +00:00
parent 42c8bb30f8
commit 075c219309

View file

@ -15,8 +15,10 @@ FORWARD _PROTOTYPE( void extpartition, (struct driver *dp, int extdev,
unsigned long extbase) ); unsigned long extbase) );
FORWARD _PROTOTYPE( int get_part_table, (struct driver *dp, int device, FORWARD _PROTOTYPE( int get_part_table, (struct driver *dp, int device,
unsigned long offset, struct part_entry *table, int *io) ); unsigned long offset, struct part_entry *table, int *io) );
#if DEAD_CODE
FORWARD _PROTOTYPE( int get_iso_fake_part_table, (struct driver *dp, int device, FORWARD _PROTOTYPE( int get_iso_fake_part_table, (struct driver *dp, int device,
unsigned long offset, struct part_entry *table) ); unsigned long offset, struct part_entry *table) );
#endif
FORWARD _PROTOTYPE( void sort, (struct part_entry *table) ); FORWARD _PROTOTYPE( void sort, (struct part_entry *table) );
/*============================================================================* /*============================================================================*
@ -47,10 +49,7 @@ int atapi; /* atapi device */
limit = base + div64u(dv->dv_size, SECTOR_SIZE); limit = base + div64u(dv->dv_size, SECTOR_SIZE);
/* Read the partition table for the device. */ /* Read the partition table for the device. */
if(atapi) { if(!get_part_table(dp, device, 0L, table, &io)) {
if(!get_iso_fake_part_table(dp, device, 0L, table))
return;
} else if(!get_part_table(dp, device, 0L, table, &io)) {
return; return;
} }
@ -184,6 +183,7 @@ int *io_ok;
return 1; return 1;
} }
#if DEAD_CODE
/*============================================================================* /*============================================================================*
* get_iso_fake_part_table * * get_iso_fake_part_table *
*============================================================================*/ *============================================================================*/
@ -237,6 +237,7 @@ struct part_entry *table; /* four entries */
/* Read the partition table at 'offset'. */ /* Read the partition table at 'offset'. */
return 1; return 1;
} }
#endif
/*===========================================================================* /*===========================================================================*
* sort * * sort *