The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.30.2.1 / (download) - annotate - [select for diffs], Sun Mar 24 20:27:04 2024 UTC (3 days, 17 hours ago) by bouyer
Branch: netbsd-10
Changes since 1.30: +13 -8 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.16 (colored)

Pull up following revision(s) (requested by martin in ticket #645):
	usr.sbin/sysinst/gpt.c: revision 1.32
PR 58061: fix bug in the GPT backend: when inserting a partition
(i.e. not adding it at the end) a bogus ID was returned for the new
partition.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Mar 24 17:29:58 2024 UTC (3 days, 20 hours ago) by martin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.31: +13 -8 lines
Diff to previous 1.31 (colored) to selected 1.16 (colored)

PR 58061: fix bug in the GPT backend: when inserting a partition
(i.e. not adding it at the end) a bogus ID was returned for the new
partition.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Feb 8 20:51:24 2024 UTC (6 weeks, 6 days ago) by andvar
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored) to selected 1.16 (colored)

fix misplaced or missing "e" in words with "ment" ending (argument, implement,
increment, decrement, alignment), in comments, documentation, log messages.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Dec 15 14:54:27 2022 UTC (15 months, 1 week ago) by martin
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Branch point for: netbsd-10
Changes since 1.29: +14 -8 lines
Diff to previous 1.29 (colored) to selected 1.16 (colored)

PR 57100: fix install flag handling for newly added GPT partitions,
fix multiple install flags when updating existing partitions.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jun 11 15:41:19 2022 UTC (21 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored) to selected 1.16 (colored)

Enhance support for the pseudo file system type "EFI System Partition".

Revision 1.6.2.10 / (download) - annotate - [select for diffs], Wed Feb 2 04:25:36 2022 UTC (2 years, 1 month ago) by msaitoh
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.6.2.9: +5 -2 lines
Diff to previous 1.6.2.9 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored) to selected 1.16 (colored)

Pull up following revision(s) (requested by martin in ticket #1422):
	usr.sbin/sysinst/util.c: revision 1.64
	usr.sbin/sysinst/arch/hpcsh/md.c: revision 1.11
	usr.sbin/sysinst/arch/alpha/md.c: revision 1.10
	usr.sbin/sysinst/arch/sparc64/md.c: revision 1.7
	usr.sbin/sysinst/arch/emips/md.c: revision 1.10
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.15
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.12
	usr.sbin/sysinst/arch/sandpoint/md.c: revision 1.10
	usr.sbin/sysinst/arch/luna68k/md.c: revision 1.10
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.12
	usr.sbin/sysinst/arch/vax/md.c: revision 1.8
	usr.sbin/sysinst/arch/hpcmips/md.c: revision 1.10
	usr.sbin/sysinst/target.c: revision 1.16
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.12
	usr.sbin/sysinst/arch/arc/md.c: revision 1.14
	usr.sbin/sysinst/target.c: revision 1.17
	usr.sbin/sysinst/arch/i386/md.c: revision 1.34
	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.11
	usr.sbin/sysinst/arch/atari/md.c: revision 1.8
	usr.sbin/sysinst/arch/sgimips/md.c: revision 1.10
	usr.sbin/sysinst/arch/acorn32/md.c: revision 1.8
	usr.sbin/sysinst/install.c: revision 1.22
	usr.sbin/sysinst/arch/amiga/md.c: revision 1.7
	usr.sbin/sysinst/arch/cats/md.c: revision 1.6
	usr.sbin/sysinst/arch/dummy/md.c: revision 1.7
	usr.sbin/sysinst/arch/shark/md.c: revision 1.7
	usr.sbin/sysinst/arch/pmax/md.c: revision 1.9
	usr.sbin/sysinst/arch/newsmips/md.c: revision 1.7
	usr.sbin/sysinst/arch/mipsco/md.c: revision 1.9
	usr.sbin/sysinst/arch/landisk/md.c: revision 1.15
	usr.sbin/sysinst/arch/hppa/md.c: revision 1.9
	usr.sbin/sysinst/arch/prep/md.c: revision 1.14
	usr.sbin/sysinst/defs.h: revision 1.77
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.13
	usr.sbin/sysinst/arch/ews4800mips/md.c: revision 1.8
	usr.sbin/sysinst/defs.h: revision 1.78
	usr.sbin/sysinst/arch/macppc/md.c: revision 1.7
	usr.sbin/sysinst/arch/evbppc/md.c: revision 1.10
	usr.sbin/sysinst/defs.h: revision 1.79
	usr.sbin/sysinst/gpt.c: revision 1.27
	usr.sbin/sysinst/arch/bebox/md.c: revision 1.10
	usr.sbin/sysinst/gpt.c: revision 1.28
	usr.sbin/sysinst/arch/sparc/md.c: revision 1.7
	usr.sbin/sysinst/arch/evbsh3/md.c: revision 1.7
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.22
	usr.sbin/sysinst/arch/news68k/md.c: revision 1.8
	usr.sbin/sysinst/upgrade.c: revision 1.19
	usr.sbin/sysinst/arch/zaurus/md.c: revision 1.12
	usr.sbin/sysinst/arch/playstation2/md.c: revision 1.10
	usr.sbin/sysinst/arch/hpcarm/md.c: revision 1.11
	usr.sbin/sysinst/arch/evbmips/md.c: revision 1.10
	usr.sbin/sysinst/main.c: revision 1.28
Add an option to set the directory where we look for message catalogs.
Try to get rid of all wedges we created (after unmounting).
When upgrading, update the boot code post extraction from
the updated target file system.
Do not defer wedge deletions when we have nothing mounted.
Define and use a constant for maximum disk name length.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jan 30 11:58:29 2022 UTC (2 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) to selected 1.16 (colored)

Do not defer wedge deletions when we have nothing mounted.
Define and use a constant for maximum disk name length.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jan 29 15:32:49 2022 UTC (2 years, 1 month ago) by martin
Branch: MAIN
Changes since 1.26: +4 -1 lines
Diff to previous 1.26 (colored) to selected 1.16 (colored)

Try to get rid of all wedges we created (after unmounting).

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jul 17 19:27:22 2021 UTC (2 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored) to selected 1.16 (colored)

Use strlcpy() to copy the wedge device name (the code still assumes
the string is short enough and 0 terminated, but now gcc is happy).

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jul 17 18:07:22 2021 UTC (2 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.24: +74 -5 lines
Diff to previous 1.24 (colored) to selected 1.16 (colored)

PR 56310: if we fail to create a wedge this either means there is
a bug here (and we requested something nonsensial), or there are pre-
existing "foreign" wedges which disturb our work.
So remove all wedges on this disk that we do not know about and retry
to add our new wedge.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jul 17 11:32:50 2021 UTC (2 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.23: +6 -3 lines
Diff to previous 1.23 (colored) to selected 1.16 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jan 31 22:45:46 2021 UTC (3 years, 1 month 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.22: +5 -5 lines
Diff to previous 1.22 (colored) to selected 1.16 (colored)

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

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

Revision 1.6.2.9 / (download) - annotate - [select for diffs], Thu Oct 15 19:36:50 2020 UTC (3 years, 5 months ago) by bouyer
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.6.2.8: +43 -4 lines
Diff to previous 1.6.2.8 (colored) to branchpoint 1.6 (colored) to selected 1.16 (colored)

Pull up following revision(s) (requested by martin in ticket #1113):
	usr.sbin/sysinst/bsddisklabel.c: revision 1.46
	usr.sbin/sysinst/bsddisklabel.c: revision 1.47
	usr.sbin/sysinst/disklabel.c: revision 1.40
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.13
	usr.sbin/sysinst/bsddisklabel.c: revision 1.48
	usr.sbin/sysinst/disklabel.c: revision 1.41
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.14
	usr.sbin/sysinst/bsddisklabel.c: revision 1.49
	usr.sbin/sysinst/disklabel.c: revision 1.42
	usr.sbin/sysinst/Makefile.inc: revision 1.34
	usr.sbin/sysinst/disks.c: revision 1.70
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.11
	usr.sbin/sysinst/disks.c: revision 1.71
	usr.sbin/sysinst/arch/i386/md.h: revision 1.8
	usr.sbin/sysinst/arch/arc/md.c: revision 1.13
	usr.sbin/sysinst/mbr.h: revision 1.5
	usr.sbin/sysinst/mbr.h: revision 1.6
	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.10
	usr.sbin/sysinst/bsddisklabel.c: revision 1.50
	usr.sbin/sysinst/arch/acorn32/md.c: revision 1.7
	usr.sbin/sysinst/bsddisklabel.c: revision 1.51
	usr.sbin/sysinst/bsddisklabel.c: revision 1.52
	usr.sbin/sysinst/bsddisklabel.c: revision 1.53
	usr.sbin/sysinst/bsddisklabel.c: revision 1.54
	usr.sbin/sysinst/bsddisklabel.c: revision 1.55
	usr.sbin/sysinst/bsddisklabel.c: revision 1.56
	usr.sbin/sysinst/arch/dummy/md.c: revision 1.6
	usr.sbin/sysinst/arch/amd64/md.h: revision 1.9
	usr.sbin/sysinst/arch/evbsh3/md.c: revision 1.6
	usr.sbin/sysinst/arch/sparc/md.c: revision 1.6
	usr.sbin/sysinst/arch/zaurus/md.c: revision 1.10
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.11
	usr.sbin/sysinst/arch/sandpoint/md.c: revision 1.9
	usr.sbin/sysinst/arch/vax/md.c: revision 1.7
	usr.sbin/sysinst/arch/luna68k/md.c: revision 1.9
	usr.sbin/sysinst/gpt.c: revision 1.19
	usr.sbin/sysinst/arch/i386/md.c: revision 1.31
	usr.sbin/sysinst/arch/i386/md.c: revision 1.32
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.17
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.18
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.19
	usr.sbin/sysinst/arch/shark/md.c: revision 1.6
	usr.sbin/sysinst/arch/landisk/md.c: revision 1.14
	usr.sbin/sysinst/util.c: revision 1.43
	usr.sbin/sysinst/gpt.c: revision 1.20
	usr.sbin/sysinst/util.c: revision 1.44
	usr.sbin/sysinst/gpt.c: revision 1.21
	usr.sbin/sysinst/gpt.c: revision 1.22
	usr.sbin/sysinst/arch/evbarm/msg.md.en: revision 1.2
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.11
	usr.sbin/sysinst/util.c: revision 1.46
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.12
	usr.sbin/sysinst/util.c: revision 1.47
	usr.sbin/sysinst/arch/evbarm/md.h: revision 1.6
	usr.sbin/sysinst/util.c: revision 1.48
	usr.sbin/sysinst/arch/evbarm/md.h: revision 1.7
	usr.sbin/sysinst/arch/evbmips/md.c: revision 1.9
	usr.sbin/sysinst/msg.mi.fr: revision 1.28
	usr.sbin/sysinst/msg.mi.fr: revision 1.29
	usr.sbin/sysinst/arch/sgimips/md.c: revision 1.9
	usr.sbin/sysinst/arch/evbarm/Makefile: revision 1.3
	usr.sbin/sysinst/msg.mi.de: revision 1.23
	usr.sbin/sysinst/arch/hpcsh/md.c: revision 1.10
	usr.sbin/sysinst/msg.mi.de: revision 1.24
	usr.sbin/sysinst/install.c: revision 1.15
	usr.sbin/sysinst/install.c: revision 1.16
	usr.sbin/sysinst/arch/sparc64/md.c: revision 1.6
	usr.sbin/sysinst/install.c: revision 1.17
	usr.sbin/sysinst/install.c: revision 1.18
	usr.sbin/sysinst/partitions.h: revision 1.16
	usr.sbin/sysinst/install.c: revision 1.19
	usr.sbin/sysinst/partitions.h: revision 1.17
	usr.sbin/sysinst/arch/evbppc/md.c: revision 1.9
	usr.sbin/sysinst/arch/playstation2/md.c: revision 1.9
	usr.sbin/sysinst/partitions.h: revision 1.18
	usr.sbin/sysinst/arch/hpcarm/md.c: revision 1.9
	usr.sbin/sysinst/partitions.h: revision 1.19
	usr.sbin/sysinst/msg.mi.es: revision 1.24
	usr.sbin/sysinst/msg.mi.es: revision 1.25
	usr.sbin/sysinst/msg.mi.es: revision 1.26
	usr.sbin/sysinst/arch/zaurus/md.c: revision 1.9
	usr.sbin/sysinst/target.c: revision 1.13
	usr.sbin/sysinst/target.c: revision 1.14
	usr.sbin/sysinst/part_edit.c: revision 1.17
	usr.sbin/sysinst/part_edit.c: revision 1.18
	usr.sbin/sysinst/msg.mi.fr: revision 1.30
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.11
	usr.sbin/sysinst/part_edit.c: revision 1.19
	usr.sbin/sysinst/msg.mi.fr: revision 1.31
	usr.sbin/sysinst/arch/alpha/md.c: revision 1.9
	usr.sbin/sysinst/msg.mi.en: revision 1.30
	usr.sbin/sysinst/defs.h: revision 1.56
	usr.sbin/sysinst/msg.mi.en: revision 1.31
	usr.sbin/sysinst/defs.h: revision 1.57
	usr.sbin/sysinst/msg.mi.en: revision 1.32
	usr.sbin/sysinst/arch/amiga/md.c: revision 1.6
	usr.sbin/sysinst/arch/hpcmips/md.c: revision 1.9
	usr.sbin/sysinst/defs.h: revision 1.58
	usr.sbin/sysinst/arch/cats/md.c: revision 1.5
	usr.sbin/sysinst/defs.h: revision 1.59
	usr.sbin/sysinst/arch/newsmips/md.c: revision 1.6
	usr.sbin/sysinst/arch/pmax/md.c: revision 1.8
	usr.sbin/sysinst/arch/mipsco/md.c: revision 1.8
	usr.sbin/sysinst/part_edit.c: revision 1.20
	usr.sbin/sysinst/part_edit.c: revision 1.21
	usr.sbin/sysinst/arch/macppc/md.c: revision 1.6
	usr.sbin/sysinst/part_edit.c: revision 1.22
	usr.sbin/sysinst/part_edit.c: revision 1.23
	usr.sbin/sysinst/part_edit.c: revision 1.24
	usr.sbin/sysinst/defs.h: revision 1.60
	usr.sbin/sysinst/arch/mac68k/Makefile: revision 1.3
	usr.sbin/sysinst/defs.h: revision 1.61
	usr.sbin/sysinst/defs.h: revision 1.63
	usr.sbin/sysinst/defs.h: revision 1.64
	usr.sbin/sysinst/defs.h: revision 1.65
	usr.sbin/sysinst/label.c: revision 1.21
	usr.sbin/sysinst/defs.h: revision 1.66
	usr.sbin/sysinst/label.c: revision 1.22
	usr.sbin/sysinst/defs.h: revision 1.67
	usr.sbin/sysinst/label.c: revision 1.23
	usr.sbin/sysinst/label.c: revision 1.24
	usr.sbin/sysinst/label.c: revision 1.25
	usr.sbin/sysinst/label.c: revision 1.26
	usr.sbin/sysinst/label.c: revision 1.27
	usr.sbin/sysinst/msg.mi.pl: revision 1.31
	usr.sbin/sysinst/label.c: revision 1.28
	usr.sbin/sysinst/msg.mi.pl: revision 1.32
	usr.sbin/sysinst/label.c: revision 1.29
	usr.sbin/sysinst/arch/atari/md.c: revision 1.7
	usr.sbin/sysinst/disklabel.c: revision 1.36
	usr.sbin/sysinst/disklabel.c: revision 1.37
	usr.sbin/sysinst/disklabel.c: revision 1.38
	usr.sbin/sysinst/disklabel.c: revision 1.39
	usr.sbin/sysinst/arch/bebox/md.c: revision 1.9
	usr.sbin/sysinst/mbr.c: revision 1.32
	usr.sbin/sysinst/disks.c: revision 1.66
	usr.sbin/sysinst/mbr.c: revision 1.33
	usr.sbin/sysinst/disks.c: revision 1.67
	usr.sbin/sysinst/mbr.c: revision 1.34
	usr.sbin/sysinst/arch/emips/md.c: revision 1.9
	usr.sbin/sysinst/disks.c: revision 1.68
	usr.sbin/sysinst/partitions.c: revision 1.11
	usr.sbin/sysinst/mbr.c: revision 1.35
	usr.sbin/sysinst/disks.c: revision 1.69
	usr.sbin/sysinst/mbr.c: revision 1.36
	usr.sbin/sysinst/arch/hppa/md.c: revision 1.8
	usr.sbin/sysinst/arch/prep/md.c: revision 1.13
	usr.sbin/sysinst/label.c: revision 1.30
	usr.sbin/sysinst/arch/ews4800mips/md.c: revision 1.7
	usr.sbin/sysinst/main.c: revision 1.21
	usr.sbin/sysinst/main.c: revision 1.22
	usr.sbin/sysinst/main.c: revision 1.23
	usr.sbin/sysinst/bsddisklabel.c: revision 1.40
	usr.sbin/sysinst/main.c: revision 1.24
	usr.sbin/sysinst/arch/cobalt/md.h: revision 1.6
	usr.sbin/sysinst/bsddisklabel.c: revision 1.41
	usr.sbin/sysinst/main.c: revision 1.25
	usr.sbin/sysinst/arch/news68k/md.c: revision 1.7
	usr.sbin/sysinst/bsddisklabel.c: revision 1.42
	usr.sbin/sysinst/bsddisklabel.c: revision 1.43
	usr.sbin/sysinst/bsddisklabel.c: revision 1.44
	usr.sbin/sysinst/bsddisklabel.c: revision 1.45
Use strlcpy in a few places to guarnatee 0-terminated strings
Rever previous: the d_packname in struct disklabel is not NUL terminated.
Disable the warning instead.
Do not force -Os optimization (unless SMALLPROG)
Remove unused "rel" global variable and make the -r option a no-op.
PR 55045: strlcpy(NULL, ..., 0) considered harmfull in some implementations.
PR misc/54886: bump threshold for automatic/default creation of a tmpfs /tmp
up slightly (to 384 MB ram). This will make sure the default install has
a > 64 MB /tmp available (number pulled out of thin air, 64 MB is the minimum
required by the ZFS tests).
Don't depend on common symbol definitions.
boardype should not be common.
Redo the root-size-limit check again after we grew the root partition
for kernel dumps. Auto-enable the /usr partition if it overflows.
For all non-root partitions, default to FFSv2.
When extending a partition (to fill the total disk size) do respect
size limits.
Do not suggest a size limited partition for extension by default.
Minor tweak to previous: when forcing a /usr partition just to have an
arbitrary extendable partition, still use its default size initially.
At the end of a new installation save entropy.
Ooops, backout previous - twice the entropy saving is not needed.
Instead slightly improve the (slightly) hidden other code that already
did it.
PR 55202: disable swapping if we started it due to low ram
it's "its"
Remove "If you booted from a floppy" message
Set HAVE_INSTALL_IMAGE for evbarm
Change mountpoint of boot ext2fs from /stand to /ext2 to avoid conflict.
Should be pulled up to netbsd-9, with fixes of PR/55060.
MBR type for Ext2 should be MBR_PTYPE_LNXEXT2, not MBR_PTYPE_FAT12.
Silence -Wstringop-truncation for ``name'' in disp_selected_part().
This variable is used only for display, and truncation seems harmless.
PR 55572: avoid crash when answering the mount point prompt for a previously
empty mount point with an emptry sting.
When adding a new partition in the concrete partition editor, make sure
to set a pointer to the partition table interface in the new entry.
Otherwise we may end up not writing back the partitions at all, leading
to further fallout later.
Receipe to reproduce the issue from Frederic Fauberteau, thanks!
In the concrete partitions editor, after deleting the last partition move
the menu selection to the "add a partition" entry (instead of the sentinel
line which is not an active menu entry).
Typo in comment
Keep a list of all partition tables from which we have deleted partitions
and make sure we update those partition tables when writing partitions,
even if no install related partition remains on them.
Fix display of timezone selection menu
If there is no current partitioning manager assume we are editing the
current system and make target_already_root() return true.
Fixes various fallout when using sysinst post installation.
PR 55377: mark boot partitions in the partition size display, as suggested
by Izumi Tsutsui (minor modifications + all bugs by me)
PR 55378: do not assume RAW_PART to be either 2 or 3
PR 55379: avoid creating bogus /etc/fstab lines for /dev/cd* if no
cdrom is available.
PR 55381: try to deal with moved (but not yet saved) partitions when
calculating free space
Apply patch provided by Izumi Tsutsui in PR 55382: make ext2 partitions
show up in the outer (MBR) partition table, needed for example on Cobalt
where firmware boots from that partition.
PR 55384: detangle pm->ptstart from the "install" flag (selecting a
target partition). Instead introduce a new PTI_INSTALL_TARGET per partition
flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be
the first sector usable by NetBSD.
If we have no explicitly marke target root partition, make sure to set
the proper flag on the implicit one.
When merging existing partitions with desired target system layout
information, only force the "mount" flag if the existing partitions
has a valid mount point.
Add a heuristic to detect and properly mark EFI system partitions
when re-using pre-existing partitions.
When MD code requests a reserved area (at the start of the disk)
make sure to properly account for the "lost" space during all calculations
and especially when expanding the main partition to fill the disk.
Avoid using the global "pm" or a passed device descriptons when we are
passing disk limits explicitly anyway.
Simplify/fix a few rounding calculations.
When creating new partitions for "full disk" use, pass a install target
hint to the partitioning backend (for the outer NetBSD partition).
Use an install target hint to mark a new partition active.
When compiled with BOOTSEL support, also name the new partition "NetBSD".
Remove more pm->ptstart abuse - calculate values localy where needed
instead.
Fix editing start and size of not yet existing outer partitions.
Previously we abused pm->ptstart / pm->ptsize to pass the bounds of the
NetBSD outer partition to the inner partition editor - but now this is
not a valid assumption any more, so explicitly fix the bounds if an
outer partition exists.
Remove very strange code that special-cased MSDOS file systems and refused
to newfs the partition (despite explicit request to do so) if it was
mountable.
Accidently carried over from a dim and distant past, before we had
fsck_newfs.
PR 55536: when we find existing partition tables and have alternative
formats available, offer to delete partitions and create new ones from
scratch (in some other or the same on-disk format).
Minor fix to previous: fix condition when we offer the partition type
switch - it makes sense even if the disk is partitioned but has no valid
partitions.
Before forcing MBR partitions into our disklabel, make sure they are not
there yet - could happen in various paths when reusing existing partitions
(or parts of that) - previously we would blindly duplicate identical
partitions.
Ooops, part of previous was not meant to be included yet
When renumbering partitions (after deletions) be slightly more lax
in matching, to cope with differences between MBR EFI partitions and
disklabel MSDOS partitions.
PR 55142: on popular demand bring back expert options to adjust the
number of free inodes, block size and fragment size for FFS and LFS.
Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT
partition via "gpt type" - not "gpt label".
Fix copy & pasto (missing "again" label)
Remove dead code
Move MBR writing (if any) post disklabel writing, otherwise strange
interactions happen.
Properly convert partition default sizes in MB to number of sectors

Revision 1.22 / (download) - annotate - [select for diffs], Wed Oct 14 04:17:43 2020 UTC (3 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) to selected 1.16 (colored)

Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT
partition via "gpt type" - not "gpt label".

Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 13 17:26:28 2020 UTC (3 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.20: +9 -2 lines
Diff to previous 1.20 (colored) to selected 1.16 (colored)

PR 55142: on popular demand bring back expert options to adjust the
number of free inodes, block size and fragment size for FFS and LFS.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 12 16:14:32 2020 UTC (3 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.19: +10 -1 lines
Diff to previous 1.19 (colored) to selected 1.16 (colored)

PR 55536: when we find existing partition tables and have alternative
formats available, offer to delete partitions and create new ones from
scratch (in some other or the same on-disk format).

Revision 1.19 / (download) - annotate - [select for diffs], Sat Oct 3 18:54:18 2020 UTC (3 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.18: +25 -2 lines
Diff to previous 1.18 (colored) to selected 1.16 (colored)

PR 55384: detangle pm->ptstart from the "install" flag (selecting a
target partition). Instead introduce a new PTI_INSTALL_TARGET per partition
flag and deal with it in the partitioning backends.

Honour pm->ptstart when allocating new partitions - it is supposed to be
the first sector usable by NetBSD.

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:06:00 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.18.2.1: +1816 -0 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored) to selected 1.16 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.18.2.1, Mon Mar 30 12:19:28 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.18: +0 -1816 lines
FILE REMOVED

file gpt.c was added on branch phil-wifi on 2020-04-13 08:06:00 +0000

Revision 1.18 / (download) - annotate - [select for diffs], Mon Mar 30 12:19:28 2020 UTC (3 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406
Branch point for: phil-wifi
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored) to selected 1.16 (colored)

Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values)

Revision 1.17 / (download) - annotate - [select for diffs], Mon Mar 30 10:42:49 2020 UTC (3 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

Support partition type ZFS

Revision 1.6.2.8 / (download) - annotate - [select for diffs], Tue Jan 28 10:17:58 2020 UTC (4 years, 2 months ago) by msaitoh
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.6.2.7: +57 -11 lines
Diff to previous 1.6.2.7 (colored) to branchpoint 1.6 (colored) to selected 1.16 (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.16 / (download) - annotate - [selected], Mon Jan 27 21:21:22 2020 UTC (4 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp
Changes since 1.15: +10 -4 lines
Diff to previous 1.15 (colored)

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

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jan 15 19:36:30 2020 UTC (4 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.14: +8 -1 lines
Diff to previous 1.14 (colored) to selected 1.16 (colored)

Add a method to query the partitioning schemes "internal idea" of a
cylinder size - whatever that means in the real world.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jan 9 13:22:30 2020 UTC (4 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.13: +41 -8 lines
Diff to previous 1.13 (colored) to selected 1.16 (colored)

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

Revision 1.6.2.7 / (download) - annotate - [select for diffs], Tue Dec 17 09:44:50 2019 UTC (4 years, 3 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.6.2.6: +9 -2 lines
Diff to previous 1.6.2.6 (colored) to branchpoint 1.6 (colored) to selected 1.16 (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.13 / (download) - annotate - [select for diffs], Fri Dec 13 22:12:41 2019 UTC (4 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.12: +9 -2 lines
Diff to previous 1.12 (colored) to selected 1.16 (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.6.2.6 / (download) - annotate - [select for diffs], Sun Nov 17 13:45:26 2019 UTC (4 years, 4 months ago) by msaitoh
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC1
Changes since 1.6.2.5: +110 -31 lines
Diff to previous 1.6.2.5 (colored) to branchpoint 1.6 (colored) to selected 1.16 (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.12 / (download) - annotate - [select for diffs], Tue Nov 12 16:33:14 2019 UTC (4 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.11: +110 -31 lines
Diff to previous 1.11 (colored) to selected 1.16 (colored)

Add options to the various partitioning stages that allow cloning of
alien partitions (optionally including data).

Revision 1.6.2.5 / (download) - annotate - [select for diffs], Tue Aug 27 04:21:01 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.6.2.4: +25 -10 lines
Diff to previous 1.6.2.4 (colored) to branchpoint 1.6 (colored) to selected 1.16 (colored)

Pull up following revision(s) (requested by martin in ticket #119):
	usr.sbin/sysinst/gpt.c: revision 1.11
Fix a bug when installing to pre-exising GPT partitions.
Handle GPT labels with spaces.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Aug 26 12:14:06 2019 UTC (4 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.10: +25 -10 lines
Diff to previous 1.10 (colored) to selected 1.16 (colored)

Fix a bug when installing to pre-exising GPT partitions.
Handle GPT labels with spaces.

Revision 1.6.2.4 / (download) - annotate - [select for diffs], Sun Aug 18 13:21:40 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.6.2.3: +4 -3 lines
Diff to previous 1.6.2.3 (colored) to branchpoint 1.6 (colored) to selected 1.16 (colored)

Pull up following revision(s) (requested by martin in ticket #78):
	usr.sbin/sysinst/gpt.c: revision 1.10
	usr.sbin/sysinst/disklabel.c: revision 1.12
	usr.sbin/sysinst/msg.mi.fr: revision 1.18
	usr.sbin/sysinst/msg.mi.de: revision 1.14
	usr.sbin/sysinst/partitions.c: revision 1.2
	usr.sbin/sysinst/msg.mi.es: revision 1.15
	usr.sbin/sysinst/msg.mi.pl: revision 1.21
	usr.sbin/sysinst/partitions.h: revision 1.6
	usr.sbin/sysinst/msg.mi.en: revision 1.20
	usr.sbin/sysinst/mbr.c: revision 1.20
On architectures that usually do MBR/disklabel, nevertheless deal with
pure/plain disklabel disks, and explicitly offer this as partitioning
option when bootability is not a concern.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Aug 14 13:02:23 2019 UTC (4 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.9: +4 -3 lines
Diff to previous 1.9 (colored) to selected 1.16 (colored)

On architectures that usually do MBR/disklabel, nevertheless deal with
pure/plain disklabel disks, and explicitly offer this as partitioning
option when bootability is not a concern.

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Thu Aug 8 05:51:43 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.6.2.2: +20 -1 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored) to selected 1.16 (colored)

Pull up following revision(s) (requested by martin in ticket #28):
	usr.sbin/sysinst/disklabel.c: revision 1.11
	usr.sbin/sysinst/target.c: revision 1.10
	usr.sbin/sysinst/disks.c: revision 1.47
	usr.sbin/sysinst/txtwalk.c: revision 1.2
	usr.sbin/sysinst/partitions.h: revision 1.5
	usr.sbin/sysinst/txtwalk.h: revision 1.2
	usr.sbin/sysinst/arch/ews4800mips/md.h: revision 1.4
	usr.sbin/sysinst/gpt.c: revision 1.9
	usr.sbin/sysinst/defs.h: revision 1.43
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the
available types at compile time, check for available newfs_* helper
binaries in the actual install environment at runtime.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Aug 7 10:08:04 2019 UTC (4 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.8: +20 -1 lines
Diff to previous 1.8 (colored) to selected 1.16 (colored)

Support upgrade of systems using NAME= syntax in /etc/fstab.

Make supported file system types dynamic - instead of hardcoding the
available types at compile time, check for available newfs_* helper
binaries in the actual install environment at runtime.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Mon Aug 5 04:37:44 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.6.2.1: +44 -1 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored) to selected 1.16 (colored)

Pull up following revision(s) (requested by martin in ticket #15):
	usr.sbin/sysinst/gpt.c: revision 1.8
When reading an existing gpt, match the wedges already existing
on the parent device, so we can use them directly if we should proceed
with an unmodified partition table.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Mon Aug 5 04:34:54 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored) to selected 1.16 (colored)

Pull up following revision(s) (requested by martin in ticket #8):
	usr.sbin/sysinst/gpt.c: revision 1.7
Deal with missing labels when parsing gpt(8) output.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Aug 3 14:00:42 2019 UTC (4 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.7: +44 -1 lines
Diff to previous 1.7 (colored) to selected 1.16 (colored)

When reading an existing gpt, match the wedges already existing ons
on the parent device, so we can use them directly if we should proceed
with an unmodified partition table.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 2 10:44:22 2019 UTC (4 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.6: +2 -3 lines
Diff to previous 1.6 (colored) to selected 1.16 (colored)

Deal with missing labels when parsing gpt(8) output.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 28 16:30:36 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.5: +22 -1 lines
Diff to previous 1.5 (colored) to selected 1.16 (colored)

If available, show additional names of foreign partitions in the
size menu. Makes installing on machines with other OSes installed
a lot less confusing.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jul 28 13:17:46 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.4: +45 -24 lines
Diff to previous 1.4 (colored) to selected 1.16 (colored)

Deal with partition types we don't know anything about.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jul 26 08:18:47 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored) to selected 1.16 (colored)

Strip trailing / from last mounted strings.
No idea how they happen, but for cgd root (init.root = "/altroot")
they have been reported to exist.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jul 25 13:16:35 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.16 (colored)

Fix a few calloc() calls with wrong arg order (harmless, but for consistency)

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jun 23 11:47:08 2019 UTC (4 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.1: +7 -1 lines
Diff to previous 1.1 (colored) to selected 1.16 (colored)

Ignore corrupt GPTs

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 12 06:20:17 2019 UTC (4 years, 9 months ago) by martin
Branch: MAIN
Diff to selected 1.16 (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.

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>