diff options
author | marcel <marcel@FreeBSD.org> | 2003-11-03 06:52:30 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-11-03 06:52:30 +0000 |
commit | f46a65623917177718e420a39e45efccd1b2d2d8 (patch) | |
tree | ace0e2a6ec48d3ed212eb880a8a68644e874551c /lib/libdisk | |
parent | 2464f65e4a4b7cbb0f19cd1bbdddf66f184ae59b (diff) | |
download | FreeBSD-src-f46a65623917177718e420a39e45efccd1b2d2d8.zip FreeBSD-src-f46a65623917177718e420a39e45efccd1b2d2d8.tar.gz |
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.
Diffstat (limited to 'lib/libdisk')
-rw-r--r-- | lib/libdisk/write_ia64_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |