Chameleon

Chameleon Commit Details

Date:2015-03-10 07:17:26 (9 years 19 days ago)
Author:ErmaC
Commit:2605
Parents: 2604
Message:Temp disabled feature introduced in commit 2562 (Added ability to auto-select last booted partition as the boot volume), cause AllocateKernelMemory error.
Changes:
M/trunk/i386/libsaio/sys.c

File differences

trunk/i386/libsaio/sys.c
954954
955955
956956
957
958
959
960
961
962
963
964
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
965972
966973
967974
......
10111018
10121019
10131020
1014
1021
10151022
10161023
1017
1024
1025
10181026
10191027
10201028
......
10401048
10411049
10421050
1051
1052
10431053
10441054
10451055
BVRef selectBootVolume(BVRef chain)
{
bool filteredChain = false;
bool foundPrimary = false;
BVRef bvr= NULL;
BVRef bvr1= NULL;
BVRef bvr2= NULL;
char dirSpec[] = "hd(%d,%d)/", fileSpec[] = "Volumes", *label;
u_int32_t time, lasttime = 0;
long flags;
bool filteredChain= false;
bool foundPrimary= false;
BVRef bvr= NULL;
BVRef bvr1= NULL;
BVRef bvr2= NULL;
//char dirSpec[]= "hd(%d,%d)/";
//char fileSpec[]= "Volumes";
char *label;
//u_int32_t time;
//u_int32_t lasttime= 0;
//long flags;
if (chain->filtered)
{
}
free(val);
}
/*
// Bungo: select last booted partition as the boot volume
// TODO: support other OSes (foreign boot)
for (bvr = chain; bvr; bvr = bvr->next) {
for (bvr = chain; bvr; bvr = bvr->next)
{
if (bvr->flags & (kBVFlagSystemVolume | kBVFlagForeignBoot))
{
time = 0;
// Bungo: code below selects first partition in the chain (last partition on disk),
// in my case Recovery HD, as boot volume, so I would prefer last booted partition
// as default boot volume - see the code above
*/
/*
* Scannig the volume chain backwards and trying to find
* a HFS+ volume with valid boot record signature.

Archive Download the corresponding diff file

Revision: 2605