The NetBSD Project

CVS log for src/usr.sbin/sysinst/partman.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / sysinst

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.56 / (download) - annotate - [select for diffs], Sun Jul 10 10:52:41 2022 UTC (6 months, 3 weeks ago) by martin
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.55: +41 -22 lines
Diff to previous 1.55 (colored)

Preparations to make the extended partitioning during normal installation
more usefull - pass an optional install_description to partman().

Revision 1.55 / (download) - annotate - [select for diffs], Fri Apr 8 10:17:55 2022 UTC (9 months, 3 weeks ago) by andvar
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

fix various typos, mainly in comments, but also log messages, docs, game text.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Nov 6 06:40:33 2021 UTC (14 months, 3 weeks ago) by msaitoh
Branch: MAIN
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored)

s/writting/writing/

Revision 1.53 / (download) - annotate - [select for diffs], Tue Sep 14 21:45:20 2021 UTC (16 months, 2 weeks ago) by rillig
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

sysinst: fix lint error about empty compound literal

In C99, a compound literal must have at least one expression between the
braces.  Empty structs and compound literals are a GNU extension.

The first member of struct part_entry has type size_t, therefore 0 fits
well.

No functional change.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Jul 17 11:32:50 2021 UTC (18 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.51: +8 -8 lines
Diff to previous 1.51 (colored)

PR 56310: avoid assert() failures (or crashes) when the runtime addition
of a wedge fails (for whatever reasons).

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jan 31 22:45:46 2021 UTC (23 months, 4 weeks ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.50: +25 -25 lines
Diff to previous 1.50 (colored)

sysinst: remove trailing whitespace from *.c *.h

In contrast to the messages files, this whitespace is not significant.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:06:00 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.22.2.1: +1499 -949 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.41.2.5 / (download) - annotate - [select for diffs], Mon Feb 10 21:39:37 2020 UTC (2 years, 11 months ago) by bouyer
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE
Changes since 1.41.2.4: +10 -6 lines
Diff to previous 1.41.2.4 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

Pull up following revision(s) (requested by martin in ticket #693):
	usr.sbin/sysinst/arch/x68k/msg.md.en: revision 1.2
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.10
	usr.sbin/sysinst/arch/mvme68k/msg.md.fr: revision 1.2
	usr.sbin/sysinst/arch/x68k/msg.md.en: revision 1.3
	usr.sbin/sysinst/arch/mvme68k/msg.md.fr: revision 1.3
	usr.sbin/sysinst/msg.mi.en: revision 1.28
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.10
	usr.sbin/sysinst/msg.mi.es: revision 1.22
	usr.sbin/sysinst/target.c: revision 1.12
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.10
	usr.sbin/sysinst/arch/i386/md.c: revision 1.30
	usr.sbin/sysinst/arch/mvme68k/msg.md.pl: revision 1.2
	usr.sbin/sysinst/arch/mvme68k/msg.md.pl: revision 1.3
	usr.sbin/sysinst/bsddisklabel.c: revision 1.39
	usr.sbin/sysinst/arch/mvme68k/msg.md.de: revision 1.2
	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.9
	usr.sbin/sysinst/disklabel.c: revision 1.35
	usr.sbin/sysinst/arch/mvme68k/msg.md.de: revision 1.3
	usr.sbin/sysinst/defs.h: revision 1.55
	usr.sbin/sysinst/disks.c: revision 1.63
	usr.sbin/sysinst/disks.c: revision 1.64
	usr.sbin/sysinst/mbr.c: revision 1.31
	usr.sbin/sysinst/disks.c: revision 1.65
	usr.sbin/sysinst/txtwalk.c: revision 1.3
	usr.sbin/sysinst/txtwalk.c: revision 1.4
	usr.sbin/sysinst/arch/mvme68k/msg.md.en: revision 1.2
	usr.sbin/sysinst/arch/mvme68k/msg.md.en: revision 1.3
	usr.sbin/sysinst/msg.mi.fr: revision 1.26
	usr.sbin/sysinst/msg.mi.pl: revision 1.29
	usr.sbin/sysinst/arch/mvme68k/msg.md.es: revision 1.2
	usr.sbin/sysinst/upgrade.c: revision 1.15
	usr.sbin/sysinst/arch/mvme68k/msg.md.es: revision 1.3
	usr.sbin/sysinst/upgrade.c: revision 1.16
	usr.sbin/sysinst/partman.c: revision 1.50
	usr.sbin/sysinst/msg.mi.de: revision 1.21
remove unused "emptypart" message (or moved to ifdef notyet area)
PR install/54921: message "ordering" takes a %s argument.
PR install/54921: skip non-user partitions when checking for overlaps
bootxx_name() - fix oversight in previous change (do not assume first
partition is the root partition)
PR install/54934: always use -f on the installboot invocation. We come
here post-newfs (and maybe should have dd'd zeros to the start of the
disk before newfs instead).
Remove a bogus assert: when reading disklabel partitions and the outer
(MBR) partitioning has changed, but the changes have not yet been written
back to disk, we need to ignore the kernels idea of the disklabel and
instead continue with an empty one.
Deal with partitioning schemes having no inner counterpart.
Avoid NULL derefs.
Do not assum a partitioning scheme that supports innner partitions always
needs to actually have such partitions defined.
PR bin/54944: deal with escaped spaces in NAME= syntax in /etc/fstab.
PR bin/54944: explicitly reject GPT protective MBRs.
PR bin/54944: make the "explicit single wedge" selection also work for
upgrades.
Reformat a query to add an automatically detected swap partition
so it fits on narrow screens.
Make re-install sets also work for an explicit selected root wedge
Fix copy&pasto in previous - from kre.
Only a single partition can ever have the "extend" flag (grow to available
size).
Do not use -P for tar extractions - the in tree tar has been fixed.
Finish conversion to generic partitioning backend

Revision 1.50 / (download) - annotate - [select for diffs], Thu Feb 6 11:55:18 2020 UTC (2 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Changes since 1.49: +10 -6 lines
Diff to previous 1.49 (colored)

Deal with partitioning schemes having no inner counterpart.
Avoid NULL derefs.

Revision 1.41.2.4 / (download) - annotate - [select for diffs], Tue Jan 28 10:17:58 2020 UTC (3 years ago) by msaitoh
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC2
Changes since 1.41.2.3: +643 -289 lines
Diff to previous 1.41.2.3 (colored) to branchpoint 1.41 (colored)

Pull up following revision(s) (requested by martin in ticket #668):
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.11
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.12
	usr.sbin/sysinst/arch/arc/md.c: revision 1.11
	usr.sbin/sysinst/arch/arc/md.c: revision 1.12
	usr.sbin/sysinst/partman.c: revision 1.43
	usr.sbin/sysinst/partman.c: revision 1.46
	usr.sbin/sysinst/partman.c: revision 1.47
	usr.sbin/sysinst/partman.c: revision 1.48
	usr.sbin/sysinst/partman.c: revision 1.49
	usr.sbin/sysinst/msg.pm.fr: revision 1.2
	usr.sbin/sysinst/upgrade.c: revision 1.14
	usr.sbin/sysinst/arch/i386/md.c: revision 1.28
	usr.sbin/sysinst/arch/i386/md.c: revision 1.29
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.9
	usr.sbin/sysinst/arch/sandpoint/md.c: revision 1.7
	usr.sbin/sysinst/arch/sandpoint/md.c: revision 1.8
	usr.sbin/sysinst/gpt.c: revision 1.14
	usr.sbin/sysinst/gpt.c: revision 1.15
	usr.sbin/sysinst/arch/luna68k/md.c: revision 1.8
	usr.sbin/sysinst/gpt.c: revision 1.16
	usr.sbin/sysinst/msg.pm.de: revision 1.2
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.11
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.12
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.13
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.14
	usr.sbin/sysinst/sizemultname.c: revision 1.4
	usr.sbin/sysinst/msg.pm.en: revision 1.2
	usr.sbin/sysinst/arch/landisk/md.c: revision 1.12
	usr.sbin/sysinst/util.c: revision 1.41
	usr.sbin/sysinst/arch/landisk/md.c: revision 1.13
	usr.sbin/sysinst/util.c: revision 1.42
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.10
	usr.sbin/sysinst/partitions.c: revision 1.9
	usr.sbin/sysinst/arch/evbarm/md.h: revision 1.4
	usr.sbin/sysinst/arch/evbarm/md.h: revision 1.5
	usr.sbin/sysinst/arch/evbmips/md.c: revision 1.7
	usr.sbin/sysinst/arch/evbmips/md.c: revision 1.8
	usr.sbin/sysinst/msg.mi.fr: revision 1.25
	usr.sbin/sysinst/msg.mi.de: revision 1.20
	usr.sbin/sysinst/install.c: revision 1.14
	usr.sbin/sysinst/partitions.h: revision 1.13
	usr.sbin/sysinst/partitions.h: revision 1.14
	usr.sbin/sysinst/arch/evbppc/md.c: revision 1.7
	usr.sbin/sysinst/arch/playstation2/md.c: revision 1.7
	usr.sbin/sysinst/msg.mi.en: revision 1.27
	usr.sbin/sysinst/partitions.h: revision 1.15
	usr.sbin/sysinst/arch/evbppc/md.c: revision 1.8
	usr.sbin/sysinst/arch/hpcarm/md.c: revision 1.7
	usr.sbin/sysinst/arch/playstation2/md.c: revision 1.8
	usr.sbin/sysinst/msg.pm.pl: revision 1.2
	usr.sbin/sysinst/arch/hpcarm/md.c: revision 1.8
	usr.sbin/sysinst/msg.mi.es: revision 1.21
	usr.sbin/sysinst/arch/zaurus/md.c: revision 1.7
	usr.sbin/sysinst/target.c: revision 1.11
	usr.sbin/sysinst/arch/zaurus/md.c: revision 1.8
	usr.sbin/sysinst/part_edit.c: revision 1.14
	usr.sbin/sysinst/part_edit.c: revision 1.15
	usr.sbin/sysinst/part_edit.c: revision 1.16
	usr.sbin/sysinst/defs.h: revision 1.50
	usr.sbin/sysinst/defs.h: revision 1.51
	usr.sbin/sysinst/defs.h: revision 1.52
	usr.sbin/sysinst/defs.h: revision 1.53
	usr.sbin/sysinst/defs.h: revision 1.54
	usr.sbin/sysinst/arch/hpcmips/md.c: revision 1.7
	usr.sbin/sysinst/arch/hpcmips/md.c: revision 1.8
	usr.sbin/sysinst/arch/hpcsh/md.c: revision 1.8
	usr.sbin/sysinst/msg.pm.es: revision 1.2
	usr.sbin/sysinst/arch/hpcsh/md.c: revision 1.9
	usr.sbin/sysinst/label.c: revision 1.18
	usr.sbin/sysinst/label.c: revision 1.19
	usr.sbin/sysinst/net.c: revision 1.35
	usr.sbin/sysinst/msg.mi.pl: revision 1.28
	usr.sbin/sysinst/disklabel.c: revision 1.28
	usr.sbin/sysinst/disklabel.c: revision 1.29
	usr.sbin/sysinst/mbr.c: revision 1.24
	usr.sbin/sysinst/disks.c: revision 1.59
	usr.sbin/sysinst/mbr.c: revision 1.25
	usr.sbin/sysinst/mbr.c: revision 1.26
	usr.sbin/sysinst/mbr.c: revision 1.27
	usr.sbin/sysinst/mbr.c: revision 1.28
	usr.sbin/sysinst/label.c: revision 1.20
	usr.sbin/sysinst/mbr.c: revision 1.29
	usr.sbin/sysinst/bsddisklabel.c: revision 1.34
	usr.sbin/sysinst/bsddisklabel.c: revision 1.35
	usr.sbin/sysinst/bsddisklabel.c: revision 1.36
	usr.sbin/sysinst/bsddisklabel.c: revision 1.37
	usr.sbin/sysinst/disklabel.c: revision 1.30
	usr.sbin/sysinst/bsddisklabel.c: revision 1.38
	usr.sbin/sysinst/disklabel.c: revision 1.31
	usr.sbin/sysinst/disklabel.c: revision 1.32
	usr.sbin/sysinst/disklabel.c: revision 1.33
	usr.sbin/sysinst/disklabel.c: revision 1.34
	usr.sbin/sysinst/disks.c: revision 1.60
	usr.sbin/sysinst/disks.c: revision 1.61
	usr.sbin/sysinst/arch/bebox/md.c: revision 1.7
	usr.sbin/sysinst/disks.c: revision 1.62
	usr.sbin/sysinst/arch/bebox/md.c: revision 1.8
	usr.sbin/sysinst/mbr.c: revision 1.30
	usr.sbin/sysinst/partitions.c: revision 1.10
	usr.sbin/sysinst/arch/prep/md.c: revision 1.11
	usr.sbin/sysinst/arch/prep/md.c: revision 1.12
	usr.sbin/sysinst/menus.pm: revision 1.3
	usr.sbin/sysinst/main.c: revision 1.20
	usr.sbin/sysinst/menus.mi: revision 1.20
	usr.sbin/sysinst/menus.mi: revision 1.21
avoid calling snprintf/strlcat with an input parameter the same
as the output.  from martin@.  fixes gcc 8 restrict warnings.
Finish conversion of extended partitioning parts to new abstract
backend interface. XXX still could use a lot of polishing.
Instead of a (bogus) attempt to query the model via ofctl, use the (now
fixed) sysctl hw.model instead.
When reading the secondary disklabel partitions from an existing disklabel
set the mbr partitions as parent.
Move the LABELSECTOR check and make it FS type specific - some partition
types (FFS, RAID) are allowed to overlap with the LABELSECTOR.
When asked to create a whole-disk partition for unknown usage, do not only
assert(false), but actually return an error (in case "assert" is a nop).
PR install/54787: when trying to derive proper alignement and first offset
from exisiting partitions, use the first partition offset if it is already
closer to the start of the disk than the prefered alignment - we can not
move existing partitions around.
Fix handling of inner/outer partitions (e.g. MBR and disklabel) in
extended partitioning:
 - when editing a disk with such a schme, offer both partitions in two
   steps
 - when commiting changes save the inner partitions after the outer ones
Add a method to query the partitioning schemes "internal idea" of a
cylinder size - whatever that means in the real world.
Avoid using the global "pm" variable in utility functions - during
extended partitioning they may point to a different device.
Remove useless calls to get_ramsize() - return value is ignored and
the function has no side effects.
Fix /tmp tmpfs handling and on machines with enough RAM default to
creating a /tmp tmpfs with 25% of ram size limit. Suggested by ad@.
PR install/54872: fix printf argument order, sectors and heads were
swapped in the bios geometry display.
First try to bring evbarm installation closer to current reality.
hide disklabel_non_bootable() under NO_DISKLABEL_BOOT like the usage.
should fix most builds.
Deal with even stranger fictious empty disklabels (PR kern/54882).
Factor out all RAM size thresholds as defines to avoid magic numbers.
To work around PR misc/54886 bump the threshold for a tmpfs /tmp mount
up to 256 MB.
When retrying sets during extraction, reset the relevant statistics
to avoid counting retried sets multiple times.
Reported by kim.
Fix support for non-512-byte/sector disks again after I broke it when
introducing the abstract partition backends.
Use a few strlcpy() instead of strncpy() for network ioctl structs.
We seem to have no formal documentation stating the various
	char if*_name[IFNAMSIZ]; /* if name, e.g. "en0" */
elements in ioctls are nul terminated, but the peanut gallery claims
it is so - and at least half of the code in-tree touching them agrees.
Too much disklabel magic happening in the kernel - to compensate force
MBR first when trying to identify the existing partitioning scheme of
a disk.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Jan 27 21:21:22 2020 UTC (3 years ago) by martin
Branch: MAIN
Changes since 1.48: +9 -7 lines
Diff to previous 1.48 (colored)

Fix support for non-512-byte/sector disks again after I broke it when
introducing the abstract partition backends.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Jan 15 19:08:24 2020 UTC (3 years ago) by martin
Branch: MAIN
Changes since 1.47: +26 -2 lines
Diff to previous 1.47 (colored)

Fix handling of inner/outer partitions (e.g. MBR and disklabel) in
extended partitioning:
 - when editing a disk with such a schme, offer both partitions in two
   steps
 - when commiting changes save the inner partitions after the outer ones

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jan 10 12:55:14 2020 UTC (3 years ago) by martin
Branch: MAIN
Changes since 1.46: +2 -1 lines
Diff to previous 1.46 (colored)

When asked to create a whole-disk partition for unknown usage, do not only
assert(false), but actually return an error (in case "assert" is a nop).

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jan 9 13:22:30 2020 UTC (3 years ago) by martin
Branch: MAIN
Changes since 1.45: +500 -226 lines
Diff to previous 1.45 (colored)

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

Revision 1.41.2.3 / (download) - annotate - [select for diffs], Tue Dec 17 09:44:50 2019 UTC (3 years, 1 month ago) by msaitoh
Branch: netbsd-9
Changes since 1.41.2.2: +3 -2 lines
Diff to previous 1.41.2.2 (colored) to branchpoint 1.41 (colored)

Pull up following revision(s) (requested by martin in ticket #560):
	usr.sbin/sysinst/partitions.h: revision 1.11
	usr.sbin/sysinst/defs.h: revision 1.49
	usr.sbin/sysinst/mbr.c: revision 1.23
	usr.sbin/sysinst/msg.mi.en: revision 1.26
	usr.sbin/sysinst/disks.c: revision 1.58
	usr.sbin/sysinst/arch/evbarm/menus.md.pl: revision 1.2
	usr.sbin/sysinst/msg.mi.es: revision 1.20
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.9
	usr.sbin/sysinst/gpt.c: revision 1.13
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.10
	usr.sbin/sysinst/arch/arc/md.c: revision 1.10
	usr.sbin/sysinst/disklabel.c: revision 1.18
	usr.sbin/sysinst/bsddisklabel.c: revision 1.33
	usr.sbin/sysinst/disklabel.c: revision 1.19
	usr.sbin/sysinst/main.c: revision 1.19
	usr.sbin/sysinst/partman.c: revision 1.45
	usr.sbin/sysinst/arch/alpha/md.c: revision 1.7
	usr.sbin/sysinst/msg.mi.de: revision 1.19
	usr.sbin/sysinst/arch/evbarm/menus.md.en: revision 1.2
	usr.sbin/sysinst/arch/x68k/md.h: revision 1.4
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.9
	usr.sbin/sysinst/arch/evbarm/menus.md.es: revision 1.2
	usr.sbin/sysinst/wskbd.c: revision 1.4
	usr.sbin/sysinst/label.c: revision 1.15
	usr.sbin/sysinst/arch/amiga/md.h: revision 1.5
	usr.sbin/sysinst/label.c: revision 1.16
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.9
	usr.sbin/sysinst/arch/emips/md.c: revision 1.8
	usr.sbin/sysinst/label.c: revision 1.17
	usr.sbin/sysinst/arch/pmax/md.c: revision 1.7
	usr.sbin/sysinst/partitions.c: revision 1.6
	usr.sbin/sysinst/arch/prep/md.c: revision 1.10
	usr.sbin/sysinst/arch/mipsco/md.c: revision 1.7
	usr.sbin/sysinst/partitions.c: revision 1.7
	usr.sbin/sysinst/partitions.c: revision 1.8
	usr.sbin/sysinst/arch/ews4800mips/md.c: revision 1.5
	usr.sbin/sysinst/disklabel.c: revision 1.20
	usr.sbin/sysinst/arch/evbarm/menus.md.fr: revision 1.2
	usr.sbin/sysinst/msg.mi.fr: revision 1.24
	usr.sbin/sysinst/disklabel.c: revision 1.21
	usr.sbin/sysinst/partitions.h: revision 1.9
	usr.sbin/sysinst/msg.mi.pl: revision 1.27
	usr.sbin/sysinst/disklabel.c: revision 1.22
	usr.sbin/sysinst/disklabel.c: revision 1.23
	usr.sbin/sysinst/arch/i386/md.c: revision 1.27
	usr.sbin/sysinst/disklabel.c: revision 1.24
	usr.sbin/sysinst/disklabel.c: revision 1.25
	usr.sbin/sysinst/arch/cobalt/md.h: revision 1.5
	usr.sbin/sysinst/disklabel.c: revision 1.26
	usr.sbin/sysinst/disklabel.c: revision 1.27
	usr.sbin/sysinst/partitions.h: revision 1.10
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.10
PR install/54582: allow MD code to disable on-disk presence verification
of "real" disklabels. Auto-enable this (at run time) when there is no other
partitioning scheme but disklabel configured.
Hard-coded enable this for x68k to allow using kernel based translations
for native Human68k partitions.
Get rid of the evbarm preliminary menu: do not bother to ask the user
whether this is a RPi - query the FDT instead.
PR 54065: add optional "old compat" variant of ext2fs in file system
type selection and use that as default for the cobalt boot file system.
For now rely on the kernel mapping native RDB partitions.
Fix detection of existing disklabels in the case when we only have
the disklabel partitioning scheme available.
Fix DISKLABEL_NO_ONDISK_VERIFY (accidently disabled in previous)
Fix inverted comparison
Do not try to change the keyboard layout if we are not running on the
console.
When trying to tell a fictious but empty label from a real one, skip
partition a if it has the same start and size as the raw partition.
Remove bogus assert.
When finding (paritioning scheme native) partition types for file systems
from our install description, pass the partition type (not only the file
system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem
type (MSDOS) is not a unique selector.
Adapt MD parts to changes in get_fs_part_type (pass partition type).
If a fictious label has no RAW_PART assume there is no valid disk label.
Pass proper track size when initializing the default alignment - this is
important with sunlabels.
Fix overlapping partitions display
Reject (what we consider) empty/invalid fake disklabels no matter whether
we have other partitioning schemes available or not.
Do not show disklabel command invocation by default (only if there are
errors).
After installing boot blocks with RUN_NO_CLEAR (and handling the
potential errors) make sure to clear the stdscreen.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Dec 13 22:12:41 2019 UTC (3 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (colored)

When finding (paritioning scheme native) partition types for file systems
from our install description, pass the partition type (not only the file
system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem
type (MSDOS) is not a unique selector.

Revision 1.41.2.2 / (download) - annotate - [select for diffs], Sun Nov 17 13:45:26 2019 UTC (3 years, 2 months ago) by msaitoh
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC1
Changes since 1.41.2.1: +12 -9 lines
Diff to previous 1.41.2.1 (colored) to branchpoint 1.41 (colored)

Pull up following revision(s) (requested by martin in ticket #436):
	usr.sbin/sysinst/disks.c: revision 1.55
	usr.sbin/sysinst/msg.mi.en: revision 1.24
	usr.sbin/sysinst/mbr.c: revision 1.22
	usr.sbin/sysinst/disks.c: revision 1.56
	usr.sbin/sysinst/msg.mi.en: revision 1.25
	usr.sbin/sysinst/disks.c: revision 1.57
	usr.sbin/sysinst/arch/playstation2/msg.md.pl: revision 1.3
	usr.sbin/sysinst/Makefile.inc: revision 1.30
	usr.sbin/sysinst/configmenu.c: revision 1.11
	usr.sbin/sysinst/util.c: revision 1.35
	usr.sbin/sysinst/gpt.c: revision 1.12
	usr.sbin/sysinst/util.c: revision 1.36
	usr.sbin/sysinst/arch/playstation2/msg.md.de: revision 1.3
	usr.sbin/sysinst/arch/i386/menus.md: revision 1.3
	usr.sbin/sysinst/util.c: revision 1.37
	usr.sbin/sysinst/part_edit.c: revision 1.11
	usr.sbin/sysinst/arch/i386/msg.md.en: revision 1.2
	usr.sbin/sysinst/util.c: revision 1.38
	usr.sbin/sysinst/part_edit.c: revision 1.12
	usr.sbin/sysinst/arch/i386/msg.md.en: revision 1.3
	usr.sbin/sysinst/util.c: revision 1.39
	usr.sbin/sysinst/part_edit.c: revision 1.13
	usr.sbin/sysinst/arch/i386/msg.md.en: revision 1.4
	usr.sbin/sysinst/disklabel.c: revision 1.15
	usr.sbin/sysinst/bsddisklabel.c: revision 1.30
	usr.sbin/sysinst/arch/i386/msg.md.es: revision 1.2
	usr.sbin/sysinst/bsddisklabel.c: revision 1.31
	usr.sbin/sysinst/arch/i386/msg.md.es: revision 1.3
	usr.sbin/sysinst/arch/i386/msg.md.es: revision 1.4
	usr.sbin/sysinst/mbr.h: revision 1.4
	usr.sbin/sysinst/main.c: revision 1.18
	usr.sbin/sysinst/partman.c: revision 1.44
	usr.sbin/sysinst/msg.mi.de: revision 1.17
	usr.sbin/sysinst/arch/i386/msg.md.fr: revision 1.2
	usr.sbin/sysinst/msg.mi.de: revision 1.18
	usr.sbin/sysinst/arch/i386/msg.md.fr: revision 1.3
	usr.sbin/sysinst/arch/playstation2/msg.md.en: revision 1.3
	usr.sbin/sysinst/arch/i386/msg.md.fr: revision 1.4
	usr.sbin/sysinst/arch/amd64/md.c: revision 1.2
	usr.sbin/sysinst/arch/ews4800mips/Makefile: revision 1.3
	usr.sbin/sysinst/arch/playstation2/msg.md.es: revision 1.3
	usr.sbin/sysinst/label.c: revision 1.13
	usr.sbin/sysinst/Makefile.inc: revision 1.29
	usr.sbin/sysinst/label.c: revision 1.14
	usr.sbin/sysinst/util.c: revision 1.40
	usr.sbin/sysinst/partitions.c: revision 1.5
	usr.sbin/sysinst/arch/amd64/md.h: revision 1.8
	usr.sbin/sysinst/msg.mi.es: revision 1.18
	usr.sbin/sysinst/net.c: revision 1.34
	usr.sbin/sysinst/msg.mi.es: revision 1.19
	usr.sbin/sysinst/arch/i386/msg.md.pl: revision 1.2
	usr.sbin/sysinst/arch/i386/md.c: revision 1.22
	usr.sbin/sysinst/msg.mi.fr: revision 1.22
	usr.sbin/sysinst/arch/playstation2/msg.md.fr: revision 1.3
	usr.sbin/sysinst/arch/i386/msg.md.pl: revision 1.3
	usr.sbin/sysinst/arch/i386/md.c: revision 1.23
	usr.sbin/sysinst/msg.mi.pl: revision 1.25
	usr.sbin/sysinst/msg.mi.fr: revision 1.23
	usr.sbin/sysinst/arch/i386/msg.md.pl: revision 1.4
	usr.sbin/sysinst/arch/i386/md.c: revision 1.24
	usr.sbin/sysinst/partitions.h: revision 1.8
	usr.sbin/sysinst/msg.mi.pl: revision 1.26
	usr.sbin/sysinst/arch/i386/msg.md.de: revision 1.2
	usr.sbin/sysinst/arch/i386/msg.md.de: revision 1.3
	usr.sbin/sysinst/arch/i386/msg.md.de: revision 1.4
	usr.sbin/sysinst/run.c: revision 1.13
	usr.sbin/sysinst/defs.h: revision 1.46
	usr.sbin/sysinst/install.c: revision 1.12
	usr.sbin/sysinst/defs.h: revision 1.47
	usr.sbin/sysinst/install.c: revision 1.13
	usr.sbin/sysinst/defs.h: revision 1.48
Add options to the various partitioning stages that allow cloning of
alien partitions (optionally including data).
PR 54467: we trust our own sets, extract them with -P to allow symlink
redirection (especially for updates and chroot services - back out
once a better solution for those is implemented)
Make cloning support optional, so we can save some space on very small
install media.
Drop MBR and cloning support on crunched install media.
Make tar extraction flags depend on our usage of pax-as-tar or bsdtar.
Fix missing newlines in bios match display, pointed out by maxv.
Drop unused variable.
Fix table of bios geomatries
knf style adjustments
Make the bootblock selection menu more sane, pointed out by maxv
Make sure all menus have a translatable exit option (or none at all).
On amd64 support installation with a KASLR kernel, via "custom install"
and selecting the GENERIC_KASLR kernel set.
Setup /prekern and boot.cfg accordingly.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Nov 16 20:26:59 2019 UTC (3 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.43: +12 -9 lines
Diff to previous 1.43 (colored)

Make sure all menus have a translatable exit option (or none at all).

Revision 1.43 / (download) - annotate - [select for diffs], Sun Oct 6 00:05:10 2019 UTC (3 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.42: +115 -62 lines
Diff to previous 1.42 (colored)

avoid calling snprintf/strlcat with an input parameter the same
as the output.  from martin@.  fixes gcc 8 restrict warnings.

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Sun Aug 18 13:17:39 2019 UTC (3 years, 5 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.41: +4 -7 lines
Diff to previous 1.41 (colored)

Pull up following revision(s) (requested by martin in ticket #76):
	usr.sbin/sysinst/partman.c: revision 1.42
Make sure to completely initialize dynamic menu entries.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Aug 13 17:57:49 2019 UTC (3 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.41: +4 -7 lines
Diff to previous 1.41 (colored)

Make sure to completely initialize dynamic menu entries.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Jul 25 19:01:08 2019 UTC (3 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Gracefully get out of extended partitioning if the user did not create
any partitions at all.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jul 23 18:13:40 2019 UTC (3 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

For upgrade / re-install allow the currently running system as a target
in the "disk" selection.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jul 15 17:17:59 2019 UTC (3 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.38: +3 -2 lines
Diff to previous 1.38 (colored)

Fix partition size display

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jul 14 16:12:02 2019 UTC (3 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.37: +22 -5 lines
Diff to previous 1.37 (colored)

Limit the number of menu entries in extended partitioning to the
pre-allocated storage.
Minor cosmetics.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Jul 14 15:36:57 2019 UTC (3 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.36: +56 -13 lines
Diff to previous 1.36 (colored)

Fix a few of the very stupid mistakes I made when converting this to
the abstract partitioning interface.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jul 13 17:13:36 2019 UTC (3 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

We may call md_pre_mount() multiple times for the same install set,
so pass an additional index argument so MD code knows which part
of the install will be mounted next.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jun 22 20:46:07 2019 UTC (3 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.34: +6 -12 lines
Diff to previous 1.34 (colored)

no need to initialize fields that are already 0.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jun 20 00:43:55 2019 UTC (3 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.33: +7 -6 lines
Diff to previous 1.33 (colored)

Use _fmt_ msg_ methods when formats are needed.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jun 17 17:53:41 2019 UTC (3 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.32: +4 -2 lines
Diff to previous 1.32 (colored)

Avoid variable length local array

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jun 12 06:20:18 2019 UTC (3 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.31: +894 -761 lines
Diff to previous 1.31 (colored)

Rework internal data structures and "interfaces to user interface" functions
to get rid of all disklabel assumptions.

Previously (even for GPT partitioning) struct disklabel was used, which
obviously breaks large disk setups. Also many MD parts and parts of the
user interface assumed (a) a struct disklabel is used internally to
store partitioning information and (b) partitions are named 'a' ... $MAXPART.

Get rid of this and replace it with a quite abstract interface that should
be able to deal with all variants in partition storage:

 - partitions are stored in a (partly abstract) struct disk_partitions
   and most parts of it are only accessed via accessor functions provided
   by a "partitioning scheme".

 - implement partitioning schemes for MBR, disklabel and GPT (with likely
   RDB [amiga] and Apple Partition Map [mac*] to follow soon)

 - partitioning schemes may be cascaded, e.g. on x86 when using MBR as
   "outer partitions", we have disklabel as "inner partitions".

 - all user interface goes via accessor functions in the partitioning scheme,
   some of which return pointers to special user interface descriptors
   (e.g. to allow editing partition flags, which are scheme specific)

Overall the user interface changes (in this initial step) are minimal but
noticable. A new Anita is needed for automatic test setups - many thanks
to Andreas Gustafsson for lots of early testing and a new Anita version,
and to Manuel Bouyer for cooperation and tests of the Anita release.

This work was sponsored by The NetBSD Foundation, Inc.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:38 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.22: +44 -27 lines
Diff to previous 1.22 (colored)

Sync with HEAD

Revision 1.31 / (download) - annotate - [select for diffs], Sun Apr 21 07:50:59 2019 UTC (3 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Use FOREACH_SAFE when removing devices from our internal list.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Feb 12 18:32:15 2019 UTC (3 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.29: +8 -8 lines
Diff to previous 1.29 (colored)

Backout previous snprintf nonsense, instead STFU gcc 7's most
useless warning ever.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Feb 11 20:40:18 2019 UTC (3 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.28: +15 -35 lines
Diff to previous 1.28 (colored)

Fix a few off by one (in both directions) in previous, pointed out by mrg.
Avoid open coding snprintf return value checking and introduce a
helper functions that always ensures string termination instead,
suggested by christos.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Feb 11 20:03:28 2019 UTC (3 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.27: +1 -3 lines
Diff to previous 1.27 (colored)

Remove unconditional truncation - it confuses gcc

Revision 1.27 / (download) - annotate - [select for diffs], Mon Feb 11 19:58:22 2019 UTC (3 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.26: +14 -8 lines
Diff to previous 1.26 (colored)

Two more gcc 7 warnings when compiling wiht optimization on, one to go.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Feb 11 19:15:38 2019 UTC (3 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.25: +39 -14 lines
Diff to previous 1.25 (colored)

Make sure we properly truncate snprintf() results when the target buffer
is too small, in a way that appeases gcc 7 warnings.

Revision 1.18.2.4 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:12 2018 UTC (4 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.18.2.3: +5 -5 lines
Diff to previous 1.18.2.3 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 13 12:28:25 2018 UTC (4 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Avoid undefined behaviour, pointed out by maxv

Revision 1.24 / (download) - annotate - [select for diffs], Tue Nov 27 17:13:41 2018 UTC (4 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

Cosmetics: consistently use MEG and GIG defines for size calculations

Revision 1.18.2.3 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:55 2018 UTC (4 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.18.2.2: +15 -7 lines
Diff to previous 1.18.2.2 (colored) to branchpoint 1.18 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.23 / (download) - annotate - [select for diffs], Tue Nov 20 19:02:07 2018 UTC (4 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: pgoyette-compat-1126
Changes since 1.22: +15 -7 lines
Diff to previous 1.22 (colored)

Convert all static menu struct initializiations to C99 name initializer
format - prerequisite for an upcoming evil hack (tm).
No functional change intended.

Revision 1.15.6.4 / (download) - annotate - [select for diffs], Sat Jun 9 15:19:27 2018 UTC (4 years, 7 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2
Changes since 1.15.6.3: +5 -5 lines
Diff to previous 1.15.6.3 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Pull up following revision(s) (requested by joerg in ticket #869):

	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.5
	usr.sbin/sysinst/net.c: revision 1.24
	usr.sbin/sysinst/partman.c: revision 1.22
	usr.sbin/sysinst/menus.mi: revision 1.12
	usr.sbin/sysinst/arch/i386/md.c: revision 1.8
	usr.sbin/sysinst/arch/alpha/md.c: revision 1.3
	usr.sbin/sysinst/bsddisklabel.c: revision 1.3
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.5
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.5
	usr.sbin/sysinst/arch/emips/md.c: revision 1.4
	usr.sbin/sysinst/arch/pmax/md.c: revision 1.3
	usr.sbin/sysinst/arch/mipsco/md.c: revision 1.3
	usr.sbin/sysinst/arch/hppa/md.c: revision 1.3
	usr.sbin/sysinst/util.c: revision 1.8
	usr.sbin/sysinst/defs.h: revision 1.10
	usr.sbin/sysinst/arch/landisk/md.c: revision 1.4

deconst -> __UNCONST, the former involves UB with NULL arithmetic.

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Mon May 21 04:36:19 2018 UTC (4 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.18.2.1: +5 -5 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored)

Sync with HEAD

Revision 1.22 / (download) - annotate - [select for diffs], Fri May 18 12:23:22 2018 UTC (4 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored)

deconst -> __UNCONST, the former involves UB with NULL arithmetic.

Revision 1.15.6.3 / (download) - annotate - [select for diffs], Mon May 7 04:06:31 2018 UTC (4 years, 8 months ago) by snj
Branch: netbsd-8
Changes since 1.15.6.2: +4 -4 lines
Diff to previous 1.15.6.2 (colored) to branchpoint 1.15 (colored)

Pull up following revision(s) (requested by kre in ticket #801):
	usr.sbin/sysinst/partman.c: 1.20-1.21
PR install/53220
Don't call pm_lvm_find() unless have_lvm
pm_lvm_find() assumes that data structs (lvms) has been allocated
for it to use, which doesn't happen if !have_lvm
This avoids a sysinst core dump when the lvm command is not installed
(such as when installing from the embedded RAM root filesys in an
INSTALL kernel.)
--
Change return type of pm_lvm_find() from int to void.
It always returns (returned) 0 which was ignored by the one call.

Revision 1.15.6.2 / (download) - annotate - [select for diffs], Mon May 7 03:51:01 2018 UTC (4 years, 8 months ago) by snj
Branch: netbsd-8
Changes since 1.15.6.1: +3 -2 lines
Diff to previous 1.15.6.1 (colored) to branchpoint 1.15 (colored)

Pull up following revision(s) (requested by martin in ticket #794):
	usr.sbin/sysinst/partman.c: 1.18
fixes for GCC 6.4:
sysinst's pm_cgd_check() has missing {} issue.

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Mon May 7 03:49:16 2018 UTC (4 years, 8 months ago) by snj
Branch: netbsd-8
Changes since 1.15: +6 -6 lines
Diff to previous 1.15 (colored)

Pull up following revision(s) (requested by martin in ticket #793):
	usr.sbin/sysinst/partman.c: 1.16-1.17
Fix copy paste error. from coverity.
Cosmetics: fix the order of calloc() arguments.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Wed May 2 07:20:28 2018 UTC (4 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.18: +9 -9 lines
Diff to previous 1.18 (colored)

Synch with HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Tue May 1 21:28:39 2018 UTC (4 years, 9 months ago) by kre
Branch: MAIN
CVS Tags: pgoyette-compat-0502
Changes since 1.20: +2 -3 lines
Diff to previous 1.20 (colored)


Change return type of pm_lvm_find() from int to void.
It always returns (returned) 0 which was ignored by the one call.

Revision 1.20 / (download) - annotate - [select for diffs], Tue May 1 21:26:41 2018 UTC (4 years, 9 months ago) by kre
Branch: MAIN
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)


PR install/53220

Don't call pm_lvm_find() unless have_lvm

pm_lvm_find() assumes that data structs (lvms) has been allocated
for it to use, which doesn't happen if !have_lvm

This avoids a sysinst core dump when the lvm command is not installed
(such as when installing from the embedded RAM root filesys in an
INSTALL kernel.)

Revision 1.19 / (download) - annotate - [select for diffs], Tue May 1 08:27:39 2018 UTC (4 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.18: +6 -6 lines
Diff to previous 1.18 (colored)

vnconfig has been renamed to vndconfig. Pointed out by kre.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Feb 4 09:01:13 2018 UTC (4 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored)

fixes for GCC 6.4:

mail's execute() needs a volatile for setjmp().

telnet has a missing {} issue.

isdnd's print_config() has a missing/wrong {} issue, and
its p_q931bc() has inconsistent indentation (but not any
actual problem.)

map-mbone's accept_neighbors2() compares a vs. a instead
of a vs. b.

sysinst's pm_cgd_check() has missing {} issue.

timed's main() has missing {} issue.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jan 29 16:24:23 2018 UTC (5 years ago) by martin
Branch: MAIN
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored)

Cosmetics: fix the order of calloc() arguments.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jan 28 14:34:26 2018 UTC (5 years ago) by maya
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Fix copy paste error. from coverity.

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:58:09 2017 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.13.2.1: +29 -17 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

Sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jan 12 17:38:08 2017 UTC (6 years ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.14: +29 -17 lines
Diff to previous 1.14 (colored)

- allocate space dynamically instead of putting structs in BSS.
- change some wrong strncat to strlcat.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:57:01 2017 UTC (6 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.13: +10 -3 lines
Diff to previous 1.13 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 11 00:56:34 2016 UTC (6 years, 1 month ago) by alnsn
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107
Changes since 1.13: +10 -3 lines
Diff to previous 1.13 (colored)

Add aes-xts to sysinst(8).

Revision 1.13 / (download) - annotate - [select for diffs], Mon May 30 17:03:21 2016 UTC (6 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

Explicitly ignore errors in the hack for mucking with wedges; mark it XXX
for future attention. Other part of PR 50886 from David Binderman.

Revision 1.12 / (download) - annotate - [select for diffs], Mon May 30 17:00:38 2016 UTC (6 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored)

#if out some unreachable code that's apparently not yet supported.
PR 50886 from David Binderman.

Revision 1.11 / (download) - annotate - [select for diffs], Sun May 17 10:13:24 2015 UTC (7 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Invert sense of a vnd creation message ("Create new image: Yes") and kill
the translations that I can't update myself.

Revision 1.4.4.4 / (download) - annotate - [select for diffs], Thu May 14 07:58:49 2015 UTC (7 years, 8 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.4.4.3: +5 -9 lines
Diff to previous 1.4.4.3 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Pull up following revision(s) (requested by martin in ticket #756):
	usr.sbin/sysinst/arch/arc/md.c: revision 1.4
	usr.sbin/sysinst/arch/atari/md.c: revision 1.3
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.4
	usr.sbin/sysinst/arch/emips/md.c: revision 1.3
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.4
	usr.sbin/sysinst/arch/evbarm64/md.c: revision 1.2
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.4
	usr.sbin/sysinst/arch/i386/md.c: revision 1.6
	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.3
	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.4
	usr.sbin/sysinst/arch/mac68k/menus.md.de: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/mac68k/menus.md.en: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/mac68k/menus.md.es: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/mac68k/menus.md.pl: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.4
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.3
	usr.sbin/sysinst/arch/prep/md.c: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/prep/menus.md.en: revision 1.2
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.4
	usr.sbin/sysinst/configmenu.c: revisions 1.4, 1.5
	usr.sbin/sysinst/defs.h: revisions 1.8, 1.9
	usr.sbin/sysinst/disks.c: revision 1.9
	usr.sbin/sysinst/install.c: revision 1.4
	usr.sbin/sysinst/label.c: revision 1.3
	usr.sbin/sysinst/mbr.c: revision 1.5
	usr.sbin/sysinst/menus.mi: revisions 1.9, 1.10
	usr.sbin/sysinst/net.c: revisions 1.18-1.20
	usr.sbin/sysinst/partman.c: revision 1.10
	usr.sbin/sysinst/upgrade.c: revision 1.4
	usr.sbin/sysinst/util.c: revisions 1.6, 1.7
Backout the previous incorrect fix for PR 49440 and redo it more globaly:
get rid of the global "yesno", introduce utility functions "ask_yesno()"
and "ask_noyes()" instead, greatly simplifying a lot of code.
Pass in a pointer to the return value to various "set source" menus.
--
Make it compile on architectures that do not support INET6 in sysinst
--
Remove a few more (ab-)usages of "yesno".
--
More (ab-)usages of "yesno"
--
Make "ask_yesno" and "ask_noyes" take a const char * as argument, moving
the deconst() dance into the utility functions and simplifying all callers.
--
Missed a few more "yesno" in previous

Revision 1.10 / (download) - annotate - [select for diffs], Sun May 10 10:14:02 2015 UTC (7 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.9: +5 -9 lines
Diff to previous 1.9 (colored)

Backout the previous incorrect fix for PR 49440 and redo it more globaly:
get rid of the global "yesno", introduce utility functions "ask_yesno()"
and "ask_noyes()" instead, greatly simplifying a lot of code.
Pass in a pointer to the return value to various "set source" menus.

Revision 1.4.4.3 / (download) - annotate - [select for diffs], Sat May 9 13:50:15 2015 UTC (7 years, 8 months ago) by msaitoh
Branch: netbsd-7
Changes since 1.4.4.2: +32 -8 lines
Diff to previous 1.4.4.2 (colored) to branchpoint 1.4 (colored)

Pull up following revision(s) (requested by martin in ticket #744):
	usr.sbin/sysinst/defs.h: revision 1.7
	usr.sbin/sysinst/disks.c: revision 1.8
	usr.sbin/sysinst/partman.c: revision 1.9
Add a new utility function "update_wedges()", which triggers a scan
for wedges on the given disk. Call this after writing a disklabel.
This makes all auto-discovered wedges go away after we changed the
partitioning (and are not using GPT) and fixes PR 49665.

Revision 1.9 / (download) - annotate - [select for diffs], Sat May 9 12:06:31 2015 UTC (7 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.8: +32 -8 lines
Diff to previous 1.8 (colored)

Add a new utility function "update_wedges()", which triggers a scan
for wedges on the given disk. Call this after writing a disklabel.
This makes all auto-discovered wedges go away after we changed the
partitioning (and are not using GPT) and fixes PR 49665.

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Sun Jan 11 04:32:38 2015 UTC (8 years ago) by snj
Branch: netbsd-7
Changes since 1.4.4.1: +2 -1 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored)

Pull up following revision(s) (requested by abs in ticket #400):
	usr.sbin/sysinst/arch/arc/md.c: revision 1.3
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.3
	usr.sbin/sysinst/arch/evbsh3/md.c: revision 1.3
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.3
	usr.sbin/sysinst/arch/hpcsh/md.c: revision 1.3
	usr.sbin/sysinst/arch/i386/md.c: revision 1.5
	usr.sbin/sysinst/arch/luna68k/md.c: revision 1.4
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.3
	usr.sbin/sysinst/arch/news68k/md.c: revision 1.3
	usr.sbin/sysinst/arch/sgimips/md.c: revision 1.3
	usr.sbin/sysinst/arch/vax/md.c: revision 1.3
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.3
	usr.sbin/sysinst/defs.h: revision 1.6
	usr.sbin/sysinst/disks.c: revision 1.7
	usr.sbin/sysinst/install.c: revision 1.3
	usr.sbin/sysinst/partman.c: revision 1.8
	usr.sbin/sysinst/upgrade.c: revision 1.3
Rather than scatter set_swap() calls wrapped in ram size checks through
md_post_disklabel() and md_pre_update(), abstract them out to an MI
set_swap_if_low_ram() and call from the appropriate MI places.
Now all platforms add swap if the system has <= 32M of RAM.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jan 2 19:43:13 2015 UTC (8 years, 1 month ago) by abs
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Rather than scatter set_swap() calls wrapped in ram size checks through
md_post_disklabel() and md_pre_update(), abstract them out to an MI
set_swap_if_low_ram() and call from the appropriate MI places.
Now all platforms add swap if the system has <= 32M of RAM.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Oct 18 08:33:31 2014 UTC (8 years, 3 months ago) by snj
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Sat Aug 23 03:44:02 2014 UTC (8 years, 5 months ago) by riz
Branch: netbsd-7
Changes since 1.4: +7 -6 lines
Diff to previous 1.4 (colored)

Pull up following revision(s) (requested by martin in ticket #39):
	usr.sbin/sysinst/main.c: revision 1.4
	usr.sbin/sysinst/disks.c: revision 1.5
	usr.sbin/sysinst/main.c: revision 1.5
	usr.sbin/sysinst/mbr.c: revision 1.3
	usr.sbin/sysinst/net.c: revision 1.3
	usr.sbin/sysinst/net.c: revision 1.4
	usr.sbin/sysinst/partman.c: revision 1.5
	usr.sbin/sysinst/partman.c: revision 1.6
	usr.sbin/sysinst/util.c: revision 1.4
Remove duplicate fclose(), pointed out by coverity scan.
Remove (accidently) duplicated code - pointed out by coverity scan.
Make sure the interface name is 0 terminated, pointed out by coverity scan.
Check return value from getenv() before using the value. Pointed out by
coverity scan.
Make an invariant more clear to avoid fals positives from coverity scan
if chdir() fails, try chdir /
Check return values from stat before comparing contents of the result
structures. Pointed out by coverity scan.
Cosmetic changes trying to appease coverity scan.
Make sure to not dereference a NULL pointer.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:14 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.6.2.1: +2801 -0 lines
Diff to previous 1.6.2.1 (colored) next main 1.7 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.6.2.1, Tue Aug 19 13:44:31 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.6: +0 -2802 lines
FILE REMOVED

file partman.c was added on branch tls-maxphys on 2014-08-20 00:05:13 +0000

Revision 1.6 / (download) - annotate - [select for diffs], Tue Aug 19 13:44:31 2014 UTC (8 years, 5 months ago) by martin
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.5: +5 -4 lines
Diff to previous 1.5 (colored)

Make sure to not dereference a NULL pointer.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Aug 19 13:41:08 2014 UTC (8 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Cosmetic changes trying to appease coverity scan.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Sun Aug 10 07:00:24 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.4.2.1: +2801 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Rebase.

Revision 1.4.2.1, Fri Aug 8 20:59:35 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.4: +0 -2801 lines
FILE REMOVED

file partman.c was added on branch tls-earlyentropy on 2014-08-10 07:00:24 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Fri Aug 8 20:59:35 2014 UTC (8 years, 5 months ago) by riz
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: tls-earlyentropy, netbsd-7
Changes since 1.3: +26 -26 lines
Diff to previous 1.3 (colored)

Clean up comments. No functional changes.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Aug 6 10:03:49 2014 UTC (8 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.2: +10 -1 lines
Diff to previous 1.2 (colored)

Remove a few menu entries if raid/lvm/cgd/gpt are not available.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Aug 5 08:39:39 2014 UTC (8 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.1: +2 -3 lines
Diff to previous 1.1 (colored)

Avoid comparision between array and NULL

Revision 1.1 / (download) - annotate - [select for diffs], Sun Aug 3 16:09:38 2014 UTC (8 years, 6 months ago) by martin
Branch: MAIN

(Finally) merge a slightly modified version of the 2012 GSoC results
from Eugene Lozovoy: add extended partitioning options to sysinst.
Still needs some testing and polishing, but it now is possible to use GPT
or to create a RAID set from scratch and install onto it.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>