Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Only a single partition can ever have the "...



details:   https://anonhg.NetBSD.org/src/rev/6dbc4c39c735
branches:  trunk
changeset: 969069:6dbc4c39c735
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Feb 06 20:17:04 2020 +0000

description:
Only a single partition can ever have the "extend" flag (grow to available
size).

diffstat:

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

diffs (18 lines):

diff -r d44dc6ef3fea -r 6dbc4c39c735 usr.sbin/sysinst/bsddisklabel.c
--- a/usr.sbin/sysinst/bsddisklabel.c   Thu Feb 06 20:08:28 2020 +0000
+++ b/usr.sbin/sysinst/bsddisklabel.c   Thu Feb 06 20:17:04 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bsddisklabel.c,v 1.38 2020/01/27 21:21:21 martin Exp $ */
+/*     $NetBSD: bsddisklabel.c,v 1.39 2020/02/06 20:17:04 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -666,6 +666,8 @@
        if (p->flags & PUIFLAG_EXTEND)
                p->flags &= ~PUIFLAG_EXTEND;
        if (extend && (p->limit == 0 || p->limit > p->size)) {
+               for (size_t k = 0; k < pset->num; k++)
+                       pset->infos[k].flags &= ~PUIFLAG_EXTEND;
                p->flags |= PUIFLAG_EXTEND;
                if (size == 0)
                        size = align;



Home | Main Index | Thread Index | Old Index