diff --git a/lib/libdisk/write_ia64_disk.c b/lib/libdisk/write_ia64_disk.c index 6c8b99c6f16f..789bb0cc04be 100644 --- a/lib/libdisk/write_ia64_disk.c +++ b/lib/libdisk/write_ia64_disk.c @@ -264,8 +264,8 @@ update_gpt(int fd, const struct disk *disk, struct gpt_hdr *hdr, } else idx = CHUNK_FTOI(c->flags); - tbl[idx].ent_lba_start = c->offset / disk->sector_size; - tbl[idx].ent_lba_end = c->end / disk->sector_size; + tbl[idx].ent_lba_start = c->offset; + tbl[idx].ent_lba_end = c->end; } hdr[0].hdr_crc_table = crc32(tbl,