Module Name: src Committed By: jnemeth Date: Wed Oct 1 03:52:42 UTC 2014
Modified Files: src/sbin/gpt: resizedisk.c Log Message: oops, forgot to update end of data area To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sbin/gpt/resizedisk.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/gpt/resizedisk.c diff -u src/sbin/gpt/resizedisk.c:1.5 src/sbin/gpt/resizedisk.c:1.6 --- src/sbin/gpt/resizedisk.c:1.5 Tue Sep 30 17:59:59 2014 +++ src/sbin/gpt/resizedisk.c Wed Oct 1 03:52:42 2014 @@ -33,7 +33,7 @@ __FBSDID("$FreeBSD: src/sbin/gpt/add.c,v 1.14 2006/06/22 22:05:28 marcel Exp $"); #endif #ifdef __RCSID -__RCSID("$NetBSD: resizedisk.c,v 1.5 2014/09/30 17:59:59 christos Exp $"); +__RCSID("$NetBSD: resizedisk.c,v 1.6 2014/10/01 03:52:42 jnemeth Exp $"); #endif #include <sys/bootblock.h> @@ -187,6 +187,7 @@ resizedisk(int fd) hdr = gpt->map_data; hdr->hdr_lba_alt = tpg->map_start; hdr->hdr_crc_self = 0; + hdr->hdr_lba_end = htole64(lbt->map_start - 1); hdr->hdr_crc_self = htole32(crc32(gpt->map_data, GPT_HDR_SIZE)); gpt_write(fd, gpt); @@ -194,6 +195,7 @@ resizedisk(int fd) hdr = tpg->map_data; hdr->hdr_lba_self = htole64(tpg->map_start); hdr->hdr_lba_alt = htole64(gpt->map_start); + hdr->hdr_lba_end = htole64(lbt->map_start - 1); hdr->hdr_lba_table = htole64(lbt->map_start); hdr->hdr_crc_self = 0; hdr->hdr_crc_self =