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 install/54745: fix confusion about absol...



details:   https://anonhg.NetBSD.org/src/rev/6e8f171abc4b
branches:  trunk
changeset: 967421:6e8f171abc4b
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Dec 08 15:09:33 2019 +0000

description:
PR install/54745: fix confusion about absolut and NetBSD-partition
relative offsets.

diffstat:

 usr.sbin/sysinst/bsddisklabel.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 8f4fe168a36f -r 6e8f171abc4b usr.sbin/sysinst/bsddisklabel.c
--- a/usr.sbin/sysinst/bsddisklabel.c   Sun Dec 08 14:59:42 2019 +0000
+++ b/usr.sbin/sysinst/bsddisklabel.c   Sun Dec 08 15:09:33 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bsddisklabel.c,v 1.31 2019/11/13 18:57:26 martin Exp $ */
+/*     $NetBSD: bsddisklabel.c,v 1.32 2019/12/08 15:09:33 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -1342,7 +1342,8 @@
        /*
         * Now add new inner partitions (and cloned partitions)
         */
-       for (i = 0; i < wanted->num && from < wanted->parts->disk_size; i++) {
+       for (i = 0; i < wanted->num && from < 
+           (wanted->parts->disk_size + wanted->parts->disk_start); i++) {
                struct part_usage_info *want = &wanted->infos[i];
 
                if (want->cur_part_id != NO_PART)



Home | Main Index | Thread Index | Old Index