116 |
sizeof (struct grub_apple_part), (char *) &apart)) |
sizeof (struct grub_apple_part), (char *) &apart)) |
117 |
return grub_errno; |
return grub_errno; |
118 |
|
|
119 |
if (apart.magic != GRUB_APPLE_PART_MAGIC) |
if (apart.magic != GRUB_APPLE_PART_MAGIC) |
120 |
break; |
{ |
121 |
|
grub_dprintf ("partition", |
122 |
|
"partition %d: bad magic (found 0x%x; wanted 0x%x\n", |
123 |
|
partno, apart.magic, GRUB_APPLE_PART_MAGIC); |
124 |
|
break; |
125 |
|
} |
126 |
|
|
127 |
part.start = apart.first_phys_block; |
part.start = apart.first_phys_block; |
128 |
part.len = apart.blockcnt; |
part.len = apart.blockcnt; |
129 |
part.offset = pos; |
part.offset = pos; |
130 |
part.index = partno; |
part.index = partno; |
131 |
|
|
132 |
|
grub_dprintf ("partition", |
133 |
|
"partition %d: name %s, type %s, start 0x%x, len 0x%x\n", |
134 |
|
partno, apart.partname, apart.parttype, |
135 |
|
apart.first_phys_block, apart.blockcnt); |
136 |
|
|
137 |
if (hook (&part)) |
if (hook (&part)) |
138 |
return grub_errno; |
return grub_errno; |
139 |
|
|