Chameleon

Chameleon Commit Details

Date:2015-03-10 16:57:19 (9 years 1 month ago)
Author:ErmaC
Commit:2606
Parents: 2605
Message:DEBUG option for last booted partition
Changes:
M/trunk/i386/libsaio/sys.c

File differences

trunk/i386/libsaio/sys.c
7878
7979
8080
81
82
83
84
8185
8286
8387
......
961965
962966
963967
964
965
968
969
970
971
966972
973
974
975
967976
968
969
977
978
970979
971
972
973980
974981
975982
......
10181025
10191026
10201027
1021
1028
1029
10221030
10231031
10241032
......
10481056
10491057
10501058
1051
1059
10521060
10531061
10541062
#define DBG(x...)msglog(x)
#endif
#ifndef DEBUG_FEATURE_LAST_BOOT
#define DEBUG_FEATURE_LAST_BOOT 0 // AllocateKernelMemory error with feature from 2562
#endif
extern int multiboot_partition;
extern int multiboot_partition_set;
extern int multiboot_skip_partition;
BVRef bvr1= NULL;
BVRef bvr2= NULL;
//char dirSpec[]= "hd(%d,%d)/";
//char fileSpec[]= "Volumes";
#if DEBUG_FEATURE_LAST_BOOT
char dirSpec[]= "hd(%d,%d)/";
char fileSpec[]= "Volumes";
#endif
char *label;
#if DEBUG_FEATURE_LAST_BOOT
u_int32_t time;
u_int32_t lasttime= 0;
//u_int32_t time;
//u_int32_t lasttime= 0;
long flags;
#endif
//long flags;
if (chain->filtered)
{
filteredChain = true;
}
free(val);
}
/*
#if DEBUG_FEATURE_LAST_BOOT // the above code cause "AllocateKernelMemory error"
// Bungo: select last booted partition as the boot volume
// TODO: support other OSes (foreign boot)
for (bvr = chain; bvr; bvr = bvr->next)
// 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
*/
#endif
/*
* Scannig the volume chain backwards and trying to find

Archive Download the corresponding diff file

Revision: 2606