Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Finish conversion of extended partitioning ...



details:   https://anonhg.NetBSD.org/src/rev/252305c41538
branches:  trunk
changeset: 467012:252305c41538
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jan 09 13:22:30 2020 +0000

description:
Finish conversion of extended partitioning parts to new abstract
backend interface. XXX still could use a lot of polishing.

diffstat:

 usr.sbin/sysinst/arch/arc/md.c          |    4 +-
 usr.sbin/sysinst/arch/bebox/md.c        |    4 +-
 usr.sbin/sysinst/arch/cobalt/md.c       |    4 +-
 usr.sbin/sysinst/arch/evbarm/md.c       |    4 +-
 usr.sbin/sysinst/arch/evbmips/md.c      |    4 +-
 usr.sbin/sysinst/arch/evbppc/md.c       |    4 +-
 usr.sbin/sysinst/arch/hpcarm/md.c       |    4 +-
 usr.sbin/sysinst/arch/hpcmips/md.c      |    4 +-
 usr.sbin/sysinst/arch/hpcsh/md.c        |    4 +-
 usr.sbin/sysinst/arch/i386/md.c         |    8 +-
 usr.sbin/sysinst/arch/landisk/md.c      |    4 +-
 usr.sbin/sysinst/arch/luna68k/md.c      |    8 +-
 usr.sbin/sysinst/arch/ofppc/md.c        |   12 +-
 usr.sbin/sysinst/arch/playstation2/md.c |    4 +-
 usr.sbin/sysinst/arch/prep/md.c         |    4 +-
 usr.sbin/sysinst/arch/sandpoint/md.c    |    4 +-
 usr.sbin/sysinst/arch/zaurus/md.c       |    4 +-
 usr.sbin/sysinst/bsddisklabel.c         |    6 +-
 usr.sbin/sysinst/defs.h                 |   23 +-
 usr.sbin/sysinst/disklabel.c            |   68 ++-
 usr.sbin/sysinst/disks.c                |   27 +-
 usr.sbin/sysinst/gpt.c                  |   49 +-
 usr.sbin/sysinst/label.c                |   24 +-
 usr.sbin/sysinst/mbr.c                  |   46 +-
 usr.sbin/sysinst/menus.mi               |   12 +-
 usr.sbin/sysinst/menus.pm               |  261 +++++------
 usr.sbin/sysinst/msg.mi.de              |   15 +-
 usr.sbin/sysinst/msg.mi.en              |   11 +-
 usr.sbin/sysinst/msg.mi.es              |   11 +-
 usr.sbin/sysinst/msg.mi.fr              |   11 +-
 usr.sbin/sysinst/msg.mi.pl              |   11 +-
 usr.sbin/sysinst/msg.pm.de              |   12 +-
 usr.sbin/sysinst/msg.pm.en              |    6 +-
 usr.sbin/sysinst/msg.pm.es              |    6 +-
 usr.sbin/sysinst/msg.pm.fr              |    6 +-
 usr.sbin/sysinst/msg.pm.pl              |    6 +-
 usr.sbin/sysinst/part_edit.c            |    9 +-
 usr.sbin/sysinst/partitions.h           |   16 +-
 usr.sbin/sysinst/partman.c              |  726 ++++++++++++++++++++++---------
 usr.sbin/sysinst/target.c               |    6 +-
 40 files changed, 887 insertions(+), 565 deletions(-)

diffs (truncated from 3032 to 300 lines):

diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/arc/md.c
--- a/usr.sbin/sysinst/arch/arc/md.c    Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/arc/md.c    Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.10 2019/12/14 12:00:40 martin Exp $ */
+/*     $NetBSD: md.c,v 1.11 2020/01/09 13:22:30 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -79,7 +79,7 @@
 
                struct disk_partitions *parts =
                   (*ps->create_new_for_disk)(pm->diskdev,
-                  0, pm->dlsize, pm->dlsize, true);
+                  0, pm->dlsize, pm->dlsize, true, NULL);
                if (!parts)
                        return false;
 
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/bebox/md.c
--- a/usr.sbin/sysinst/arch/bebox/md.c  Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/bebox/md.c  Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.6 2019/08/14 12:55:35 martin Exp $ */
+/*     $NetBSD: md.c,v 1.7 2020/01/09 13:22:31 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -72,7 +72,7 @@
 
                struct disk_partitions *parts =
                   (*ps->create_new_for_disk)(pm->diskdev,
-                  0, pm->dlsize, pm->dlsize, true);
+                  0, pm->dlsize, pm->dlsize, true, NULL);
                if (!parts)
                        return false;
 
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/cobalt/md.c
--- a/usr.sbin/sysinst/arch/cobalt/md.c Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/cobalt/md.c Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.10 2019/12/14 12:00:40 martin Exp $ */
+/*     $NetBSD: md.c,v 1.11 2020/01/09 13:22:31 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -79,7 +79,7 @@
 
                struct disk_partitions *parts =
                   (*ps->create_new_for_disk)(pm->diskdev,
-                  0, pm->dlsize, pm->dlsize, true);
+                  0, pm->dlsize, pm->dlsize, true, NULL);
                if (!parts)
                        return false;
 
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/evbarm/md.c
--- a/usr.sbin/sysinst/arch/evbarm/md.c Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/evbarm/md.c Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.10 2019/12/11 15:08:45 martin Exp $ */
+/*     $NetBSD: md.c,v 1.11 2020/01/09 13:22:31 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -88,7 +88,7 @@
 
                struct disk_partitions *parts =
                   (*ps->create_new_for_disk)(pm->diskdev,
-                  0, pm->dlsize, pm->dlsize, true);
+                  0, pm->dlsize, pm->dlsize, true, NULL);
                if (!parts)
                        return false;
 
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/evbmips/md.c
--- a/usr.sbin/sysinst/arch/evbmips/md.c        Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/evbmips/md.c        Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.6 2019/08/14 12:55:36 martin Exp $ */
+/* $NetBSD: md.c,v 1.7 2020/01/09 13:22:31 martin Exp $ */
 
 /*
  * Copyright 1997,2002 Piermont Information Systems Inc.
@@ -72,7 +72,7 @@
 
                struct disk_partitions *parts =
                   (*ps->create_new_for_disk)(pm->diskdev,
-                  0, pm->dlsize, pm->dlsize, true);
+                  0, pm->dlsize, pm->dlsize, true, NULL);
                if (!parts)
                        return false;
 
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/evbppc/md.c
--- a/usr.sbin/sysinst/arch/evbppc/md.c Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/evbppc/md.c Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.6 2019/08/14 12:55:36 martin Exp $ */
+/*     $NetBSD: md.c,v 1.7 2020/01/09 13:22:31 martin Exp $ */
 
 /*
  * Copyright 1997,2002 Piermont Information Systems Inc.
@@ -72,7 +72,7 @@
 
                struct disk_partitions *parts =
                   (*ps->create_new_for_disk)(pm->diskdev,
-                  0, pm->dlsize, pm->dlsize, true);
+                  0, pm->dlsize, pm->dlsize, true, NULL);
                if (!parts)
                        return false;
 
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/hpcarm/md.c
--- a/usr.sbin/sysinst/arch/hpcarm/md.c Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/hpcarm/md.c Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.6 2019/08/14 12:55:36 martin Exp $ */
+/*     $NetBSD: md.c,v 1.7 2020/01/09 13:22:31 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -101,7 +101,7 @@
 
                struct disk_partitions *parts =
                   (*ps->create_new_for_disk)(pm->diskdev,
-                  0, pm->dlsize, pm->dlsize, true);
+                  0, pm->dlsize, pm->dlsize, true, NULL);
                if (!parts)
                        return false;
 
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/hpcmips/md.c
--- a/usr.sbin/sysinst/arch/hpcmips/md.c        Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/hpcmips/md.c        Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.6 2019/08/14 12:55:36 martin Exp $ */
+/*     $NetBSD: md.c,v 1.7 2020/01/09 13:22:31 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -75,7 +75,7 @@
 
                struct disk_partitions *parts =
                   (*ps->create_new_for_disk)(pm->diskdev,
-                  0, pm->dlsize, pm->dlsize, true);
+                  0, pm->dlsize, pm->dlsize, true, NULL);
                if (!parts)
                        return false;
 
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/hpcsh/md.c
--- a/usr.sbin/sysinst/arch/hpcsh/md.c  Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/hpcsh/md.c  Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.7 2019/08/14 12:55:36 martin Exp $    */
+/*     $NetBSD: md.c,v 1.8 2020/01/09 13:22:31 martin Exp $    */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -76,7 +76,7 @@
 
                struct disk_partitions *parts =
                   (*ps->create_new_for_disk)(pm->diskdev,
-                  0, pm->dlsize, pm->dlsize, true);
+                  0, pm->dlsize, pm->dlsize, true, NULL);
                if (!parts)
                        return false;
 
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/i386/md.c
--- a/usr.sbin/sysinst/arch/i386/md.c   Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/i386/md.c   Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.27 2019/12/13 22:10:21 martin Exp $ */
+/*     $NetBSD: md.c,v 1.28 2020/01/09 13:22:31 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -122,7 +122,7 @@
 
                struct disk_partitions *parts =
                   (*ps->create_new_for_disk)(pm->diskdev,
-                  0, pm->dlsize, pm->dlsize, true);
+                  0, pm->dlsize, pm->dlsize, true, NULL);
                if (!parts)
                        return false;
 
@@ -285,7 +285,7 @@
 
                install->infos[0].parts->pscheme->get_part_device(
                    install->infos[0].parts, install->infos[0].cur_part_id,
-                   rdev, sizeof rdev, NULL, raw_dev_name, true);
+                   rdev, sizeof rdev, NULL, raw_dev_name, true, true);
 
                snprintf(boot_options, sizeof boot_options,
                    "console=%s,speed=%u", consoles[boottype.bp_consdev],
@@ -317,7 +317,7 @@
        int err;
 
        if (!boot->parts->pscheme->get_part_device(boot->parts,
-           boot->cur_part_id, dev, sizeof(dev), NULL, plain_name, true))
+           boot->cur_part_id, dev, sizeof(dev), NULL, plain_name, true, true))
                return -1;
 
        /*
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/landisk/md.c
--- a/usr.sbin/sysinst/arch/landisk/md.c        Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/landisk/md.c        Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.11 2019/08/14 12:55:36 martin Exp $   */
+/*     $NetBSD: md.c,v 1.12 2020/01/09 13:22:32 martin Exp $   */
 
 /*
  * Copyright 1997,2002 Piermont Information Systems Inc.
@@ -72,7 +72,7 @@
 
                struct disk_partitions *parts =
                   (*ps->create_new_for_disk)(pm->diskdev,
-                  0, pm->dlsize, pm->dlsize, true);
+                  0, pm->dlsize, pm->dlsize, true, NULL);
                if (!parts)
                        return false;
 
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/luna68k/md.c
--- a/usr.sbin/sysinst/arch/luna68k/md.c        Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/luna68k/md.c        Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.7 2019/07/13 17:13:38 martin Exp $    */
+/*     $NetBSD: md.c,v 1.8 2020/01/09 13:22:32 martin Exp $    */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -193,11 +193,11 @@
 
        if (!install->infos[0].parts->pscheme->get_part_device(
            install->infos[0].parts, install->infos[0].cur_part_id,
-           rdisk, sizeof rdisk, NULL, raw_dev_name, true))
+           rdisk, sizeof rdisk, NULL, raw_dev_name, true, true))
                return 1;
        if (!install->infos[0].parts->pscheme->get_part_device(
            install->infos[0].parts, install->infos[0].cur_part_id,
-           disk, sizeof disk, NULL, plain_name, true))
+           disk, sizeof disk, NULL, plain_name, true, true))
                return 1;
 
        if (run_program(RUN_DISPLAY | RUN_PROGRESS,
@@ -246,7 +246,7 @@
 
        if (!install->infos[0].parts->pscheme->get_part_device(
            install->infos[0].parts, install->infos[0].cur_part_id,
-           disk, sizeof disk, NULL, plain_name, true))
+           disk, sizeof disk, NULL, plain_name, true, true))
                return 0;
 
        /*
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/ofppc/md.c
--- a/usr.sbin/sysinst/arch/ofppc/md.c  Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/ofppc/md.c  Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.8 2019/08/14 12:55:37 martin Exp $    */
+/*     $NetBSD: md.c,v 1.9 2020/01/09 13:22:32 martin Exp $    */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -93,7 +93,7 @@
 
                struct disk_partitions *parts =
                   (*ps->create_new_for_disk)(pm->diskdev,
-                  0, pm->dlsize, pm->dlsize, true);
+                  0, pm->dlsize, pm->dlsize, true, NULL);
                if (!parts)
                        return false;
 
@@ -447,18 +447,18 @@
                        parts = parts->parent;          /* MBR */
 
                parts->pscheme->get_part_device(parts, bootpart_prep,
-                   bootdev, sizeof bootdev, NULL, raw_dev_name, true);
+                   bootdev, sizeof bootdev, NULL, raw_dev_name, true, true);
                parts->pscheme->get_part_device(parts, bootpart_prep,
-                   bootbdev, sizeof bootbdev, NULL, plain_name, true);
+                   bootbdev, sizeof bootbdev, NULL, plain_name, true, true);
                run_program(RUN_DISPLAY, "/bin/dd if=/dev/zero of=%s bs=512",
                    bootdev);
                run_program(RUN_DISPLAY, "/bin/dd if=/usr/mdec/ofwboot "
                    "of=%s bs=512", bootbdev);
 
                parts->pscheme->get_part_device(parts, bootpart_binfo,
-                   bootdev, sizeof bootdev, NULL, raw_dev_name, true);
+                   bootdev, sizeof bootdev, NULL, raw_dev_name, true, true);
                parts->pscheme->get_part_device(parts, bootpart_binfo,
-                   bootbdev, sizeof bootbdev, NULL, plain_name, true);
+                   bootbdev, sizeof bootbdev, NULL, plain_name, true, true);
                run_program(RUN_DISPLAY, "/bin/dd if=/dev/zero of=%s bs=512",
                    bootdev);
                run_program(RUN_DISPLAY, "/bin/dd if=/tmp/bootinfo.txt "
diff -r 4c835234f64b -r 252305c41538 usr.sbin/sysinst/arch/playstation2/md.c
--- a/usr.sbin/sysinst/arch/playstation2/md.c   Thu Jan 09 12:49:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/playstation2/md.c   Thu Jan 09 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.6 2019/08/14 12:55:37 martin Exp $ */
+/*     $NetBSD: md.c,v 1.7 2020/01/09 13:22:32 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -77,7 +77,7 @@
 



Home | Main Index | Thread Index | Old Index