Lines Matching refs:sec_buffer
58 char *sec_buffer; member
255 partitions[num_parts].sec_buffer = sec_buf; in read_ebr()
306 pe->sec_buffer = MBRbuf; in reset_boot()
323 for (; i < num_parts; i++) free(partitions[i].sec_buffer); in free_bufs()
526 partitions[i].sec_buffer = MBRbuf; in init_members()
596 free(pe->sec_buffer); in delete_partition()
608 ext_p = part_offset(partitions[i].sec_buffer, 1); in delete_partition()
609 ext_q = part_offset(partitions[i + 1].sec_buffer, 1); in delete_partition()
620 ext_p = part_offset(partitions[i-1].sec_buffer, 1); in delete_partition()
621 ext_q = part_offset(partitions[i].sec_buffer, 1); in delete_partition()
670 write_table_flag(pe->sec_buffer); in write_table()
674 xwrite(dev_fd, pe->sec_buffer, g_sect_size); in write_table()
680 for (i = 4; i < num_parts; i++) free(partitions[i].sec_buffer); in write_table()
970 pe->sec_buffer = xzalloc(g_sect_size); in add_partition()
971 pe->part = part_offset(pe->sec_buffer, 0); in add_partition()
984 pe->sec_buffer = xzalloc(g_sect_size); in add_logical_partition()
985 pe->part = part_offset(pe->sec_buffer, 0); in add_logical_partition()
990 free(pe->sec_buffer); in add_logical_partition()
1182 xprintf("%02X ",pe->sec_buffer[j]); in print_raw_sectors()