Chameleon

Chameleon Commit Details

Date:2012-10-28 22:15:41 (6 years 8 months ago)
Author:Evan Lojewski
Commit:2102
Parents: 2101
Message:Begin teaching chameleon about install / recovery partitions.
Changes:
M/trunk/i386/libsaio/saio_types.h
M/trunk/i386/libsaio/disk.c

File differences

trunk/i386/libsaio/disk.c
14681468
14691469
14701470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
14711488
14721489
14731490
......
18841901
18851902
18861903
1887
1888
1904
1905
18891906
18901907
18911908
valid = false;
}
if(!valid)
{
int fh = -1;
sprintf(dirSpec, "hd(%d,%d)/.PhysicalMediaInstall", BIOS_DEV_UNIT(bvr), bvr->part_no);
fh = open(dirSpec, 0);
if (fh >= 0)
{
valid = true;
bvr->OSisInstaller = true;
}
else
{
close(fh);
}
}
return valid;
}
if(len >= strMaxLen)
return;
strcpy(str + len, " ");
len++;
strcpy(str + len, bvr->OSisInstaller ? " (Installer) " : " ");
len += bvr->OSisInstaller ? 13 : 1;
strMaxLen -= len;
p += len;
}
trunk/i386/libsaio/saio_types.h
197197
198198
199199
200
200
201
202
201203
202204
203205
bool filtered; /* newFilteredBVChain() will set to TRUE */
bool visible; /* will shown in the device list */
char OSVersion[8];
bool OSisServer; /* 1 = OS X server , 0 = OS X client */
bool OSisServer; /* 1 = OS X server , 0 = OS X client */
bool OSisInstaller; /* 1 = OS X Install partition / recover partition , 0 = OS X Install */
};
enum {

Archive Download the corresponding diff file

Revision: 2102