summaryrefslogtreecommitdiffstats
path: root/src/autoset.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-06-22 15:24:27 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-06-22 15:24:27 +0200
commit4872ae20228d50b70132037ad65718fcddee6f44 (patch)
tree27071bd445d3f82e977f15be8aefdcfe7ca6961d /src/autoset.c
parent6de815b1165e30897c52e0cbe819a602c8c5128a (diff)
Handle Humax partition table
Diffstat (limited to 'src/autoset.c')
-rw-r--r--src/autoset.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/autoset.c b/src/autoset.c
index e12ea7e..08a255c 100644
--- a/src/autoset.c
+++ b/src/autoset.c
@@ -28,6 +28,7 @@
#include "autoset.h"
extern const arch_fnct_t arch_gpt;
+extern const arch_fnct_t arch_humax;
extern const arch_fnct_t arch_mac;
void autoset_unit(disk_t *disk)
@@ -35,8 +36,9 @@ void autoset_unit(disk_t *disk)
if(disk==NULL)
return ;
if(
- disk->arch==&arch_mac ||
+ disk->arch==&arch_mac ||
disk->arch==&arch_gpt ||
+ disk->arch==&arch_humax ||
(disk->geom.heads_per_cylinder==1 && disk->geom.sectors_per_head==1))
disk->unit=UNIT_SECTOR;
else