Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst PR 57100: in manual mode, we can not ignore...



details:   https://anonhg.NetBSD.org/src/rev/8b5fa1348ae7
branches:  trunk
changeset: 372647:8b5fa1348ae7
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Dec 15 20:34:46 2022 +0000

description:
PR 57100: in manual mode, we can not ignore existing partitions
completley, as that causes inconsistent internal state.

diffstat:

 usr.sbin/sysinst/util.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (20 lines):

diff -r 1d7de47d05a0 -r 8b5fa1348ae7 usr.sbin/sysinst/util.c
--- a/usr.sbin/sysinst/util.c   Thu Dec 15 20:21:16 2022 +0000
+++ b/usr.sbin/sysinst/util.c   Thu Dec 15 20:34:46 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.70 2022/12/15 15:32:04 martin Exp $ */
+/*     $NetBSD: util.c,v 1.71 2022/12/15 20:34:46 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -2462,9 +2462,7 @@
 empty_usage_set_from_parts(struct partition_usage_set *wanted,
     struct disk_partitions *parts)
 {
-       memset(wanted, 0, sizeof(*wanted));
-       wanted->parts = parts;
-
+       usage_set_from_parts(wanted, parts);
        return true;
 }
 



Home | Main Index | Thread Index | Old Index