20 struct sun_disklabel {
21 unsigned char info[128];
38 unsigned char spare[148];
64 label = read_part_sector(state, 0, §);
68 p =
label->partitions;
80 printk(
"Dev %s Sun disklabel: Csum bad, label corrupted\n",
98 use_vtoc = use_vtoc || !(
label->vtoc.sanity ||
101 for (i = 0; i < nparts; i++, p++) {
102 unsigned long st_sector;
103 unsigned int num_sectors;
108 put_partition(state, slot, st_sector, num_sectors);
112 state->
parts[
slot].flags |= ADDPART_FLAG_RAID;
114 state->
parts[
slot].flags |= ADDPART_FLAG_WHOLEDISK;
120 put_dev_sector(sect);