From f46a65623917177718e420a39e45efccd1b2d2d8 Mon Sep 17 00:00:00 2001 From: marcel Date: Mon, 3 Nov 2003 06:52:30 +0000 Subject: Don't divide the start and end of the chunk by the sector size when filling in the GPT entry. Both are already in sector numbers (LBA) and exactly what we need for the entry. We now write a structurally correct GPT partitioning. --- lib/libdisk/write_ia64_disk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libdisk') diff --git a/lib/libdisk/write_ia64_disk.c b/lib/libdisk/write_ia64_disk.c index 6c8b99c..789bb0c 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, -- cgit v1.1