Module Name: src Committed By: martin Date: Wed Jul 10 16:35:11 UTC 2019
Modified Files: src/usr.sbin/sysinst: disklabel.c Log Message: When deleting all partitions (e.g. before we use the default partition sizes) do not kill the geometry information in the internal disklabel copy. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/sysinst/disklabel.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/sysinst/disklabel.c diff -u src/usr.sbin/sysinst/disklabel.c:1.5 src/usr.sbin/sysinst/disklabel.c:1.6 --- src/usr.sbin/sysinst/disklabel.c:1.5 Tue Jun 25 07:14:45 2019 +++ src/usr.sbin/sysinst/disklabel.c Wed Jul 10 16:35:11 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: disklabel.c,v 1.5 2019/06/25 07:14:45 martin Exp $ */ +/* $NetBSD: disklabel.c,v 1.6 2019/07/10 16:35:11 martin Exp $ */ /* * Copyright 2018 The NetBSD Foundation, Inc. @@ -358,7 +358,7 @@ disklabel_delete_all(struct disk_partiti (struct disklabel_disk_partitions*)arg; daddr_t total_size = parts->l.d_partitions[RAW_PART].p_size; - memset(&parts->l, 0, sizeof(parts->l)); + memset(&parts->l.d_partitions, 0, sizeof(parts->l.d_partitions)); parts->dp.num_part = 0; #if RAW_PART > 2